Właściwość Alert.IsEnabled
Pobiera lub ustawia Boolean wartości właściwość, który określa, czy włączono alert lub nie.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Agent
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property IsEnabled As Boolean
Get
Set
'Użycie
Dim instance As Alert
Dim value As Boolean
value = instance.IsEnabled
instance.IsEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool IsEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool IsEnabled {
bool get ();
void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member IsEnabled : bool with get, set
function get IsEnabled () : boolean
function set IsEnabled (value : boolean)
Wartość właściwości
Typ: System.Boolean
A Boolean wartość określająca, czy alert jest włączone lub nie.
Jeśli True, alert jest włączona i jest wywoływane, gdy wystąpi określone zdarzenie lub warunek wydajności.
Jeśli ma wartość FAŁSZ (domyślnie), alert jest wyłączone i nie odpowiadają na wszelkie zdarzenia lub warunki realizacji.