Share via


ApplicationPoolCpu.Action Property

Definition

Gets or sets the actions that IIS takes when an application pool exceeds the CPU limit specified by the Limit property.

public:
 property Microsoft::Web::Administration::ProcessorAction Action { Microsoft::Web::Administration::ProcessorAction get(); void set(Microsoft::Web::Administration::ProcessorAction value); };
public Microsoft.Web.Administration.ProcessorAction Action { get; set; }
member this.Action : Microsoft.Web.Administration.ProcessorAction with get, set
Public Property Action As ProcessorAction

Property Value

One of the ProcessorAction values. The default is NoAction.

Examples

The following example gets and displays the value of the Action property. This code example is part of a larger example provided for the ApplicationPoolCpu class.

// Specify the action to be taken if the limits are exceeded.
Console.WriteLine("If the limit is exceeded take the following action (ProcessorAction): " +
    apppool.Cpu.Action);

Applies to