共用方式為


MonitorThreshold.ShouldAlert Property

Definition

Gets or sets whether an alert is generated when the metric exceeds the threshold.

public:
 property bool ShouldAlert { bool get(); void set(bool value); };
public bool ShouldAlert { get; set; }
member this.ShouldAlert : bool with get, set
Public Property ShouldAlert As Boolean

Property Value

A Boolean value. If true, exceeding the threshold causes an alert. If false, no alert is raised when the threshold is exceeded.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Applies to