Share via


MonitorThreshold.ShouldAlert Property

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Syntax

'Declaration
Public Property ShouldAlert As Boolean 
    Get 
    Set
'Usage
Dim instance As MonitorThreshold 
Dim value As Boolean 

value = instance.ShouldAlert

instance.ShouldAlert = value
public bool ShouldAlert { get; set; }
public:
property bool ShouldAlert {
    bool get ();
    void set (bool value);
}
member ShouldAlert : bool with get, set
function get ShouldAlert () : boolean 
function set ShouldAlert (value : boolean)

Property Value

Type: System.Boolean
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.

See Also

Reference

MonitorThreshold Class

Microsoft.SqlServer.Replication Namespace