State Property
IIS 7.0
Gets the run-time state of the current application pool.
Assembly: Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
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.