ApplicationPool.Name Property
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.
Gets or sets the name of the current application pool.
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String
Property Value
The name of the current application pool.
Examples
The following example lists the application pool name as well as values of other application pool properties. 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
You can use this property to configure the name of the current application pool. To set default values for all application pools on the server, use the ApplicationPoolDefaults object.