HttpRuntimeSection.Enable プロパティ

定義

アプリケーション ドメインが有効かどうかを示す値を取得または設定します。

public:
 property bool Enable { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enable", DefaultValue=true)]
public bool Enable { get; set; }
[<System.Configuration.ConfigurationProperty("enable", DefaultValue=true)>]
member this.Enable : bool with get, set
Public Property Enable As Boolean

プロパティ値

true アプリケーション ドメインが有効な場合。それ以外の場合は false。 既定値は true です。

属性

次の例は、 Enable プロパティの使用方法を示しています。

// Get the Enable property value.
Response.Write("Enable: " +
  configSection.Enable + "<br>");

// Set the Enable property value to true.
configSection.Enable = true;
' Get the Enable property value.
Response.Write("Enable: " & _
  configSection.Enable & "<br>")

' Set the Enable property value to true.
configSection.Enable = True

注釈

この設定は、現在のノード レベル以下のアプリケーション ドメインまたはドメインに影響します。

適用対象

こちらもご覧ください