Freigeben über


HttpRuntimeSection.Enable Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob die Anwendungsdomäne aktiviert ist.

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

Eigenschaftswert

truewenn die Anwendungsdomäne aktiviert ist; andernfalls . false Der Standardwert ist true.

Attribute

Beispiele

Das folgende Beispiel zeigt, wie die Enable Eigenschaft verwendet wird.

// 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

Hinweise

Diese Einstellung wirkt sich auf die Anwendungsdomäne oder Domänen auf der aktuellen Knotenebene und unten aus.

Gilt für:

Weitere Informationen