ApplicationPoolDefaults.Failure Property

Definition

Gets actions to take when an application pool fails.

public:
 property Microsoft::Web::Administration::ApplicationPoolFailure ^ Failure { Microsoft::Web::Administration::ApplicationPoolFailure ^ get(); };
public Microsoft.Web.Administration.ApplicationPoolFailure Failure { get; }
member this.Failure : Microsoft.Web.Administration.ApplicationPoolFailure
Public ReadOnly Property Failure As ApplicationPoolFailure

Property Value

An ApplicationPoolFailure object that specifies the actions to take when an application pool fails.

Examples

The following example displays the values of the RapidFailProtection and RapidFailProtectionInterval properties. This code example is part of a larger example provided for the ApplicationPoolDefaults class.

Console.WriteLine("Failure.RapidFailProtection:\t{0}",
    manager.ApplicationPoolDefaults.Failure.RapidFailProtection.ToString());
Console.WriteLine("   RapidFailProtectionInterval:\t{0}",
    manager.ApplicationPoolDefaults.Failure.RapidFailProtectionInterval.ToString());

Remarks

You can use the properties and methods of the object returned by the Failure property to configure the failure behavior of a new application pool.

Applies to

See also