Udostępnij za pośrednictwem


Właściwość DatabaseEventSet.DropDatabase

Pobiera lub ustawia Boolean wartości właściwość, który określa, czy zdarzenie jest uwzględniany w zestaw zdarzeń.Zdarzenie występuje, gdy baza danych jest odrzucany.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Property DropDatabase As Boolean
    Get
    Set
'Użycie
Dim instance As DatabaseEventSet
Dim value As Boolean

value = instance.DropDatabase

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

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy DropDatabase zdarzenie jest uwzględniane w przypadku zestaw.
W przypadku wartości True zdarzenie jest uwzględniane w zbiorze zdarzeń. W przeciwnym razie zwraca wartość False.