共用方式為


ProcessModelSection.MaxAppDomains 屬性

定義

取得或設定一個程序中允許的最大應用域數。

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 超過門檻,則在必須啟動新應用域時,該最少使用的應用域將被關閉。

適用於