Condividi tramite


Classe DatabaseMapping

The DatabaseMapping object represents a SQL Server database mapping.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

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

Nel tipo DatabaseMapping sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DatabaseMapping Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica DBName Gets the name of the database in which the login is mapped to the database user.
Proprietà pubblica LoginName Gets the name of the login that is mapped to the user in the database.
Proprietà pubblica UserName Gets the database user that is mapped to the login in the database.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Returns a string that represents the DatabaseMapping object. Esegue l'override di Object. . :: . .ToString() () () ().

In alto

Osservazioni

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

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.