Freigeben über


DatabaseActiveDirectory-Klasse

The DatabaseActiveDirectory object provides programmatic access to the Active Directory settings for a database.

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

Syntax

'Declaration
Public NotInheritable Class DatabaseActiveDirectory _
    Inherits SqlSmoObject
'Usage
Dim instance As DatabaseActiveDirectory
public sealed class DatabaseActiveDirectory : SqlSmoObject
public ref class DatabaseActiveDirectory sealed : public SqlSmoObject
[<SealedAttribute>]
type DatabaseActiveDirectory =  
    class
        inherit SqlSmoObject
    end
public final class DatabaseActiveDirectory extends SqlSmoObject

Hinweise

The DatabaseActiveDirectory object allows you to:

  • Register a database in the Active Directory service.

  • Update the database information in Active Directory service.

  • Create an alias for the database that appears in the Active Directory service.

  • Create a contact, a description and an information URL for the database that appears in the Active Directory service.

  • Delete the database registration information from Active Directory service.

To get or set DatabaseActiveDirectory object properties, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
    Microsoft.SqlServer.Management.Smo. . :: . .SqlSmoObject
      Microsoft.SqlServer.Management.Smo..::..DatabaseActiveDirectory

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.