Udostępnij za pośrednictwem


Właściwość Operator.Enabled

Pobiera lub ustawia Boolean wartości właściwość, która określa, czy włączone jest operator 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 Enabled As Boolean
    Get
    Set
'Użycie
Dim instance As [Operator]
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool Enabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool Enabled {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Enabled : bool with get, set
function get Enabled () : boolean
function set Enabled (value : boolean)

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy operator jest włączone lub nie.
Jeśli True, operator jest włączona.
Jeśli FAŁSZ (domyślnie), operator nie jest włączona.

Uwagi

Ustawienie Enabled Właściwość Włącza lub wyłącza SQL Server operator.Na przykład, ustawienie Enabled Właściwość Operator False wyłącza obiekt SQL Server Agent operator.Wyłączone a operator nie otrzymają powiadomienie, gdy uruchamiany jest alert.