ProcessModelSection.MaxAppDomains Property

 

Gets or sets the maximum allowed number of application domains in one process.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("maxAppDomains", DefaultValue := 2000)>
<IntegerValidatorAttribute(MinValue := 1, MaxValue := 2147483646)>
Public Property MaxAppDomains As Integer

Property Value

Type: System.Int32

The maximum allowed number of application domains in one process.

If the MaxAppDomains threshold is exceeded, the least-used application domain is shut down if a new application domain must start.

The following code example shows how to access the MaxAppDomains property.

' Get the current MaxAppDomains property value.
   Dim maxAppdomains As Integer = _
   processModelSection.MaxAppDomains

' Set the MaxAppDomains property to 4.
processModelSection.MaxAppDomains = 4

.NET Framework
Available since 2.0
Return to top
Show: