DatabaseMapping-Klasse

The DatabaseMapping object represents a SQL Server database mapping.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.DatabaseMapping

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

Syntax

'Declaration
Public NotInheritable Class DatabaseMapping
'Usage
Dim instance As DatabaseMapping
public sealed class DatabaseMapping
public ref class DatabaseMapping sealed
[<SealedAttribute>]
type DatabaseMapping =  class end
public final class DatabaseMapping

Der DatabaseMapping-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode DatabaseMapping Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft DBName Gets the name of the database in which the login is mapped to the database user.
Öffentliche Eigenschaft LoginName Gets the name of the login that is mapped to the user in the database.
Öffentliche Eigenschaft UserName Gets the database user that is mapped to the login in the database.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ToString Returns a string that represents the DatabaseMapping object. (Überschreibt Object.ToString().)

Zum Anfang

Hinweise

A login allows access to SQL Server, though it does not allocate permissions at a database level. Each login requires mapping to a database user within each database. The information about each mapping is stored in the DatabaseMapping object. Every login has a database mapping for each database that it can access.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Verwalten von Benutzern, Rollen und Anmeldungen

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Prinzipale (Datenbankmodul)