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 命名空间

其他资源

主体(数据库引擎)