ProcessModelSection.Enable Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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
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. true
Wenn 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 false
festzulegen.