PagesSection.AutoEventWireup プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PagesSection.AutoEventWireup プロパティの意味・解説 

PagesSection.AutoEventWireup プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ASP.NET ページイベント自動的にイベント処理関数に渡すかどうかを示す値を取得または設定します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As PagesSection
Dim value As Boolean

value = instance.AutoEventWireup

instance.AutoEventWireup = value
public bool AutoEventWireup { get;
 set; }
public:
property bool AutoEventWireup {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_AutoEventWireup ()

/** @property */
public void set_AutoEventWireup (boolean value)
public function get AutoEventWireup
 () : boolean

public function set AutoEventWireup
 (value : boolean)

プロパティ
ASP.NET ページイベント自動的にイベント処理関数に渡す場合trueそれ以外場合false既定値false です。

解説解説

AutoEventWireuptrue場合イベントによって Page_Load や Page_Init などのイベント ハンドラ指定する要はありません。つまり、Web Form ページサーバー スクリプトVisual BasicHandles キーワードを入れる必要はありません。

既定では、ASP.NET Web アプリケーションVisual Studio作成される場合.aspx ページまたは .ascx コントロールAutoEventWireup 属性の値は false設定されイベント ハンドラ自動的に作成されません。パフォーマンス重要な考慮事項である場合には、AutoEventWireuptrue設定しないください

使用例使用例

AutoEventWireup プロパティ使用する方法次のコード例示します

' Get the current AutoEventWireup property value.
Console.WriteLine( _
    "Current AutoEventWireup value: '{0}'", _
    pagesSection.AutoEventWireup)

' Set the AutoEventWireup property to false.
pagesSection.AutoEventWireup = False
// Get the current AutoEventWireup property value.
Console.WriteLine(
    "Current AutoEventWireup value: '{0}'",
    pagesSection.AutoEventWireup);

// Set the AutoEventWireup property to false.
pagesSection.AutoEventWireup = false;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PagesSection クラス
PagesSection メンバ
System.Web.Configuration 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PagesSection.AutoEventWireup プロパティ」の関連用語

PagesSection.AutoEventWireup プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PagesSection.AutoEventWireup プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS