ProcessModelSection.Enable プロパティ

定義

プロセス モデルが有効かどうかを示す値を取得または設定します。

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

プロパティ値

true プロセス モデルが有効な場合。それ以外の場合は false。 既定値は true です。

属性

次のコード例は、 Enable プロパティにアクセスする方法を示しています。


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

注釈

Enable プロパティは、ASP.NET が外部ワーカー プロセスでホストされているかどうかを指定します。 Enabletrueされている場合、ASP.NET は外部ワーカー プロセスでホストされます。それ以外の場合は、Inetinfo.exeで直接実行されます。

Inetinfo.exe で ASP.NET を実行することはお勧めしません。これは、ローカル システムのセキュリティ コンテキストでアプリケーションを実行する必要があるためです。 ASP.NET インターネット インフォメーション サービス (IIS) 6 ネイティブ モードで実行する場合、この設定は無視されるため、通常、 falseに設定する理由はありません。

適用対象