共用方式為


DatabaseActiveDirectory.IsRegistered 屬性

Gets the Boolean property that specifies whether the database is registered with the Active Directory service.

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

語法

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

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

屬性值

型別:System.Boolean
A Boolean value that specifies whether the database is registered with the Active Directory service.If True, the database is registered with the Active Directory service.If False, the database is not registered with the Active Directory service.

範例

設定屬性

請參閱

參考

DatabaseActiveDirectory 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

Active Directory Stored Procedures (Transact-SQL)

sp_ActiveDirectory_Obj (Transact-SQL)