共用方式為


MonitorThreshold.ShouldAlert 屬性

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

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Property ShouldAlert As Boolean 
    Get 
    Set
'用途
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)

屬性值

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

備註

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

請參閱

參考

MonitorThreshold 類別

Microsoft.SqlServer.Replication 命名空間