共用方式為


DatabaseMapping.DBName 屬性

Gets the name of the database in which the login is mapped to the database user.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property DBName As String 
    Get
'用途
Dim instance As DatabaseMapping 
Dim value As String 

value = instance.DBName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string DBName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ DBName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member DBName : string
function get DBName () : String

屬性值

型別:System.String
A String value that specifies the name of the database.

範例

管理使用者、角色和登入

請參閱

參考

DatabaseMapping 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

主體 (Database Engine)