DatabaseMapping 類別
The DatabaseMapping object represents a SQL Server database mapping.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.DatabaseMapping
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public NotInheritable Class DatabaseMapping
'用途
Dim instance As DatabaseMapping
public sealed class DatabaseMapping
public ref class DatabaseMapping sealed
[<SealedAttribute>]
type DatabaseMapping = class end
public final class DatabaseMapping
DatabaseMapping 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
DatabaseMapping | Initializes a new instance of the DatabaseMapping class for the specified login, database, and user. |
上層
屬性
名稱 | 說明 | |
---|---|---|
DBName | Gets the name of the database in which the login is mapped to the database user. | |
LoginName | Gets the name of the login that is mapped to the user in the database. | |
UserName | Gets the database user that is mapped to the login in the database. |
上層
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
ToString | Returns a string that represents the DatabaseMapping object. (覆寫 Object.ToString()。) |
上層
備註
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
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間