ApplicationPoolDefaults.Failure 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 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.