ProcessModelSection.MaxAppDomains 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個程序中允許的最大應用域數。
public:
property int MaxAppDomains { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxAppDomains", DefaultValue=2000)]
[System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)]
public int MaxAppDomains { get; set; }
[<System.Configuration.ConfigurationProperty("maxAppDomains", DefaultValue=2000)>]
[<System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)>]
member this.MaxAppDomains : int with get, set
Public Property MaxAppDomains As Integer
屬性值
一個程序中允許的最大應用域數。
- 屬性
範例
以下程式碼範例說明如何存取該 MaxAppDomains 物業。
// Get the current MaxAppDomains property value.
int maxAppdomains =
processModelSection.MaxAppDomains;
// Set the MaxAppDomains property to 4.
processModelSection.MaxAppDomains = 4;
' Get the current MaxAppDomains property value.
Dim maxAppdomains As Integer = _
processModelSection.MaxAppDomains
' Set the MaxAppDomains property to 4.
processModelSection.MaxAppDomains = 4
備註
若 MaxAppDomains 超過門檻,則在必須啟動新應用域時,該最少使用的應用域將被關閉。