Share via


ProcessModelSection.Enable Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob das Prozessmodell aktiviert ist, oder legt diesen fest.

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

Boolean

true, wenn das Prozessmodell aktiviert ist, andernfalls false. Der Standardwert ist true.

Attribute

Beispiele

Im folgenden Codebeispiel wird der Zugriff auf die Enable-Eigenschaft veranschaulicht.


// Get the current Enable property value.

bool enable = processModelSection.Enable;

// Set the Enable property to false.
processModelSection.Enable = false;
' Get the current Enable property value.
Dim enable As Boolean = processModelSection.Enable

' Set the Enable property to false.
processModelSection.Enable = False

Hinweise

Die Enable Eigenschaft gibt an, ob ASP.NET in einem externen Arbeitsprozess gehostet wird. trueWenn Enable , wird ASP.NET in einem externen Arbeitsprozess gehostet. Andernfalls wird sie direkt in Inetinfo.exe ausgeführt.

Hinweis

Die Ausführung ASP.NET in Inetinfo.exe wird nicht empfohlen, da die Anwendung im Lokalen Systemsicherheitskontext ausgeführt wird. Wenn ASP.NET Internetinformationsdienste im systemeigenen IIS 6-Modus ausgeführt wird, wird diese Einstellung ignoriert, daher gibt es in der Regel keinen Grund, sie auf falsefestzulegen.

Gilt für