Share via


ServerActiveDirectory.IsEnabled Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property IsEnabled As Boolean 
    Get
'Usage
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

Property Value

Type: 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.

Examples

Setting Properties

See Also

Reference

ServerActiveDirectory Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Active Directory Stored Procedures (Transact-SQL)