ApplicationPool.Start Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts the current application pool.
public:
Microsoft::Web::Administration::ObjectState Start();
public Microsoft.Web.Administration.ObjectState Start ();
member this.Start : unit -> Microsoft.Web.Administration.ObjectState
Public Function Start () As ObjectState
Returns
The current ObjectState value of the application pool.
Examples
The following example checks the value of the State property. If the application pool is stopped, the example starts it. This code example is part of a larger example provided for the ApplicationPool class.
// If the applicationPool is stopped, restart it.
if (applicationPool.State == ObjectState.Stopped)
{
applicationPool.Start();
}
Remarks
This method starts the application pool and then returns the new application pool state.