Redigera

Dela via


ProcessModelSection.Enable Property

Definition

Gets or sets a value indicating whether the process model is enabled.

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

Property Value

true if the process model is enabled; otherwise, false. The default value is true.

Attributes

Examples

The following code example shows how to access the Enable property.


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

Remarks

The Enable property specifies whether ASP.NET is hosted in an external worker process. If Enable is true, ASP.NET is hosted in an external worker process; otherwise, it runs directly in Inetinfo.exe.

Note

Running ASP.NET in Inetinfo.exe is not recommended, because this involves running the application in the Local System security context. When ASP.NET runs in Internet Information Services (IIS) 6 native mode, this setting is ignored, so there is usually no reason to set it to false.

Applies to