ApplicationPool.ProcessModel Property

IIS 7.0
 

Gets the process management attributes for the current application pool.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ApplicationPoolProcessModel ProcessModel { get; }

You can use the properties and methods of the object returned by this property to configure the process management attributes of the current application pool. To set default values for all application pools on the server, use the ApplicationPoolDefaults object.

System_CAPS_noteNote

The property values of the ApplicationPoolProcessModel object will not be written to the ApplicationHost.config file until the ServerManager.CommitChanges method is called.

The following example checks value of the ApplicationPoolProcessModel.MaxProcesses property. If the property is set to value greater than 1, the example resets the value to 1. This code example is part of a larger example provided for the ApplicationPool class.

Return to top
Show: