Udostępnij za pośrednictwem


Właściwość Index.IsDisabled

Pobiera lub ustawia Boolean wartości właściwość, który określa, czy indeks jest wyłączone.

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

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property IsDisabled As Boolean
    Get
'Użycie
Dim instance As Index
Dim value As Boolean

value = instance.IsDisabled
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool IsDisabled { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool IsDisabled {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member IsDisabled : bool
function get IsDisabled () : boolean

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy indeks jest wyłączone.
Jeśli True, indeks jest wyłączony.W przeciwnym razie False (domyślnie).

Uwagi

Ostrzeżenie

Dla indeksów na podstawie UserDefinedTableType obiektu wartość IsDisabled jest dostarczana przez sys.indexes i wartość IsDisabled właściwość jest ignorowana.