HttpRuntimeSection.Enable Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of het toepassingsdomein is ingeschakeld.

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

Waarde van eigenschap

true als het toepassingsdomein is ingeschakeld; anders, false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende voorbeeld ziet u hoe u de Enable eigenschap gebruikt.

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

Opmerkingen

Deze instelling is van invloed op het toepassingsdomein of de domeinen op het huidige knooppuntniveau en hieronder.

Van toepassing op

Zie ook