ProcessModelSection Class
TOC
Collapse the table of content
Expand the table of content

ProcessModelSection Class

 

Configures the ASP.NET process model settings on an Internet Information Services (IIS) Web server. This class cannot be inherited.

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

System.Object
  System.Configuration.ConfigurationElement
    System.Configuration.ConfigurationSection
      System.Web.Configuration.ProcessModelSection

public sealed class ProcessModelSection : ConfigurationSection

NameDescription
System_CAPS_pubmethodProcessModelSection()

Initializes a new instance of the ProcessModelSection class using default settings.

NameDescription
System_CAPS_pubpropertyAutoConfig

Gets or sets a value indicating whether ASP.NET performance settings are automatically configured for ASP.NET applications.

System_CAPS_pubpropertyClientConnectedCheck

Gets or sets a value indicating how long a request is left in the queue.

System_CAPS_pubpropertyComAuthenticationLevel

Gets or sets a value indicating the level of authentication for DCOM security.

System_CAPS_pubpropertyComImpersonationLevel

Gets or sets a value indicating the level of authentication for COM security.

System_CAPS_pubpropertyCpuMask

Gets or sets a value indicating which processors on a multiprocessor server are eligible to run ASP.NET processes.

System_CAPS_pubpropertyCurrentConfiguration

Gets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyElementInformation

Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object. (Inherited from ConfigurationElement.)

System_CAPS_protpropertyElementProperty

Gets the ConfigurationElementProperty object that represents the ConfigurationElement object itself.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyEnable

Gets or sets a value indicating whether the process model is enabled.

System_CAPS_pubpropertyIdleTimeout

Gets or sets a value indicating the period of inactivity after which ASP.NET automatically ends the worker process.

System_CAPS_protpropertyItem[ConfigurationProperty]

Gets or sets a property or attribute of this configuration element.(Inherited from ConfigurationElement.)

System_CAPS_protpropertyItem[String]

Gets or sets a property, attribute, or child element of this configuration element.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLockAllAttributesExcept

Gets the collection of locked attributes.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLockAllElementsExcept

Gets the collection of locked elements.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLockAttributes

Gets the collection of locked attributes (Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLockElements

Gets the collection of locked elements.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLockItem

Gets or sets a value indicating whether the element is locked.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyLogLevel

Gets or sets a value indicating the event types to be logged to the event log.

System_CAPS_pubpropertyMaxAppDomains

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

System_CAPS_pubpropertyMaxIOThreads

Gets or sets a value indicating the maximum number of I/O threads per CPU in the CLR thread pool.

System_CAPS_pubpropertyMaxWorkerThreads

Gets or sets a value indicating the maximum amount of worker threads per CPU in the CLR thread pool.

System_CAPS_pubpropertyMemoryLimit

Gets or sets a value indicating the maximum allowed memory size.

System_CAPS_pubpropertyMinIOThreads

Gets or sets the minimum number of I/O threads per CPU in the CLR thread pool.

System_CAPS_pubpropertyMinWorkerThreads

Gets or sets the minimum number of worker threads per CPU in the CLR thread pool.

System_CAPS_pubpropertyPassword

Gets or sets a value indicating the password to use for the Windows identity.

System_CAPS_pubpropertyPingFrequency

Gets or sets a value indicating the time interval at which the ISAPI extension pings the worker process to determine whether it is running.

System_CAPS_pubpropertyPingTimeout

Gets or sets a value indicating the time interval after which a non-responsive worker process is restarted.

System_CAPS_protpropertyProperties

Gets the collection of properties.(Inherited from ConfigurationElement.)

System_CAPS_pubpropertyRequestLimit

Gets or sets a value indicating the number of requests allowed before a worker process is recycled.

System_CAPS_pubpropertyRequestQueueLimit

Gets or sets a value indicating the number of requests allowed in the queue.

System_CAPS_pubpropertyResponseDeadlockInterval

Gets or sets a value indicating the time interval for the worker process to respond.

System_CAPS_pubpropertyResponseRestartDeadlockInterval

No longer used.

System_CAPS_pubpropertyRestartQueueLimit

Gets or sets a value indicating the maximum number of requests queued by the ISAPI while waiting for a new worker process to start handling the requests.

System_CAPS_pubpropertySectionInformation

Gets a SectionInformation object that contains the non-customizable information and functionality of the ConfigurationSection object. (Inherited from ConfigurationSection.)

System_CAPS_pubpropertyServerErrorMessageFile

Gets or sets a value indicating the file whose content must be used when a fatal error occurs.

System_CAPS_pubpropertyShutdownTimeout

Gets or sets a value indicating the time allowed for the worker process to shut down.

System_CAPS_pubpropertyTimeout

Gets or sets a value indicating the number of minutes until ASP.NET launches a new worker process.

System_CAPS_pubpropertyUserName

Gets or sets a value indicating the user name for a Windows identity.

System_CAPS_pubpropertyWebGarden

Gets or sets a value enabling the available CPUs to run the worker processes.

NameDescription
System_CAPS_protmethodDeserializeElement(XmlReader, Boolean)

Reads XML from the configuration file.(Inherited from ConfigurationElement.)

System_CAPS_protmethodDeserializeSection(XmlReader)

This API supports the product infrastructure and is not intended to be used directly from your code. Reads XML from the configuration file.(Inherited from ConfigurationSection.)

System_CAPS_pubmethodEquals(Object)

Compares the current ConfigurationElement instance to the specified object.(Inherited from ConfigurationElement.)

System_CAPS_pubmethodGetHashCode()

Gets a unique value representing the current ConfigurationElement instance.(Inherited from ConfigurationElement.)

System_CAPS_protmethodGetRuntimeObject()

Returns a custom object when overridden in a derived class.(Inherited from ConfigurationSection.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInit()

Sets the ConfigurationElement object to its initial state.(Inherited from ConfigurationElement.)

System_CAPS_protmethodInitializeDefault()

Used to initialize a default set of values for the ConfigurationElement object.(Inherited from ConfigurationElement.)

System_CAPS_protmethodIsModified()

Indicates whether this configuration element has been modified since it was last saved or loaded when implemented in a derived class.(Inherited from ConfigurationSection.)

System_CAPS_pubmethodIsReadOnly()

Gets a value indicating whether the ConfigurationElement object is read-only.(Inherited from ConfigurationElement.)

System_CAPS_protmethodReset(ConfigurationElement)

Resets the internal state of the ConfigurationElement object, including the locks and the properties collections.(Inherited from ConfigurationElement.)

System_CAPS_protmethodResetModified()

Resets the value of the IsModified method to false when implemented in a derived class.(Inherited from ConfigurationSection.)

System_CAPS_protmethodSerializeElement(XmlWriter, Boolean)

Writes the contents of this configuration element to the configuration file when implemented in a derived class.(Inherited from ConfigurationElement.)

System_CAPS_protmethodSerializeSection(ConfigurationElement, String, ConfigurationSaveMode)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an XML string containing an unmerged view of the ConfigurationSection object as a single section to write to a file.(Inherited from ConfigurationSection.)

System_CAPS_protmethodSerializeToXmlElement(XmlWriter, String)

Writes the outer tags of this configuration element to the configuration file when implemented in a derived class.(Inherited from ConfigurationElement.)

System_CAPS_protmethodSetReadOnly()

Sets the IsReadOnly property for the ConfigurationElement object and all subelements.(Inherited from ConfigurationElement.)

System_CAPS_protmethodShouldSerializeElementInTargetVersion(ConfigurationElement, String, FrameworkName)

Indicates whether the specified element should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework.(Inherited from ConfigurationSection.)

System_CAPS_protmethodShouldSerializePropertyInTargetVersion(ConfigurationProperty, String, FrameworkName, ConfigurationElement)

Indicates whether the specified property should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework.(Inherited from ConfigurationSection.)

System_CAPS_protmethodShouldSerializeSectionInTargetVersion(FrameworkName)

Indicates whether the current ConfigurationSection instance should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework.(Inherited from ConfigurationSection.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodUnmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)

Modifies the ConfigurationElement object to remove all values that should not be saved. (Inherited from ConfigurationElement.)

The ProcessModelSection class provides a way to programmatically access and modify the processModel section of a configuration file.

The ProcessModelSection class controls various aspects of the ASP.NET worker process, including its lifetime, the number of instances created at a time, what security identity it runs under, and the size of the CLR thread pool to service requests.

When ASP.NET is running under IIS 6 in native mode, ASP.NET uses the IIS 6 process model and ignores most settings in this section. Use the IIS administration user interface (UI) to configure those properties. ASP.NET still uses the following properties, which can be configured through the configuration file: RequestQueueLimit, ResponseDeadlockInterval, MaxWorkerThreads, MaxIOThreads, MinWorkerThreads, and MinWorkerThreads.

The processModel section cannot be encrypted using the protected-configuration feature or tools because it is consumed by the ASP.NET ISAPI extension.

This example demonstrates how to specify values declaratively for several attributes of the processModel section, which can also be accessed as members of the ProcessModelSection class.

The following configuration file example shows how to specify values declaratively for the processModel section.

<processModel 
  enable="True" timeout="Infinite" 
  idleTimeout="Infinite" 
  shutdownTimeout="00:00:05" requestLimit="Infinite"
  requestQueueLimit="5000" restartQueueLimit="10" 
  memoryLimit="60" webGarden="False" cpuMask="0xffffffff" 
  userName="machine" password="AutoGenerate" logLevel="Errors"
  clientConnectedCheck="00:00:05" 
  comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate"
  responseDeadlockInterval="00:03:00" 
  responseRestartDeadlockInterval="00:03:00" autoConfig="True"
  maxWorkerThreads="20" maxIoThreads="20" minWorkerThreads="1"
  minIoThreads="1" serverErrorMessageFile="" pingFrequency="Infinite"
  pingTimeout="Infinite" asyncOption="20" maxAppDomains="2000" 
/>

The following code example demonstrates how to use the ProcessModelSection class.


// Get the Web application configuration
System.Configuration.Configuration configuration = 
    WebConfigurationManager.OpenWebConfiguration("/aspnetTest");

// Get the section.
System.Web.Configuration.ProcessModelSection 
    processModelSection = 
        (ProcessModelSection)configuration.GetSection(
        "system.web/processModel");

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft