共用方式為


ServerActiveDirectory.IsEnabled 屬性

Gets the Boolean property value that specifies whether the Active Directory service is available.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsEnabled As Boolean 
    Get
'用途
Dim instance As ServerActiveDirectory 
Dim value As Boolean 

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

屬性值

型別:System.Boolean
A Boolean value that specifies whether the Active Directory service is available.If True, the Active Directory service is available.If False (default), the Active Directory service is unavailable.

範例

設定屬性

請參閱

參考

ServerActiveDirectory 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

Active Directory Stored Procedures (Transact-SQL)