Compartir por


ProcessModelSection.Enable Propiedad

Definición

Obtiene o establece un valor que indica si el modelo de proceso está habilitado.

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

Valor de propiedad

true si el modelo de proceso está habilitado; de lo contrario, false. El valor predeterminado es true.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo acceder a la Enable propiedad .


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

Comentarios

La Enable propiedad especifica si ASP.NET se hospeda en un proceso de trabajo externo. Si Enable es true, ASP.NET se hospeda en un proceso de trabajo externo; de lo contrario, se ejecuta directamente en Inetinfo.exe.

Nota:

No se recomienda ejecutar ASP.NET en Inetinfo.exe, ya que esto implica ejecutar la aplicación en el contexto de seguridad del sistema local. Cuando ASP.NET se ejecuta en modo nativo de Internet Information Services (IIS) 6, esta configuración se omite, por lo que normalmente no hay ninguna razón para establecerla falseen .

Se aplica a