共用方式為


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 是否託管於外部工作程序中。 若 EnabletrueASP.NET 則託管於外部工作程序中;否則,直接在 Inetinfo.exe中執行。

備註

不建議在 Inetinfo.exe 中執行 ASP.NET,因為這涉及在本地系統安全情境中執行應用程式。 當 ASP.NET 以 Internet Information Services (IIS) 6 原生模式執行時,此設定會被忽略,因此通常沒有理由將其設為 false

適用於