Classe DatabaseMapping

The DatabaseMapping object represents a SQL Server database mapping.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DatabaseMapping
'Utilisation
Dim instance As DatabaseMapping
public sealed class DatabaseMapping
public ref class DatabaseMapping sealed
[<SealedAttribute>]
type DatabaseMapping =  class end
public final class DatabaseMapping

Le type DatabaseMapping expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DatabaseMapping Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.

Haut de la page

Propriétés

  Nom Description
Propriété publique DBName Gets the name of the database in which the login is mapped to the database user.
Propriété publique LoginName Gets the name of the login that is mapped to the user in the database.
Propriété publique UserName Gets the database user that is mapped to the login in the database.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns a string that represents the DatabaseMapping object. (remplace Object. . :: . .ToString() () () ().)

Haut de la page

Notes

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

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.