ApplicationPool.Name Property

Definition

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.

Applies to