次の方法で共有


DatabaseMapping.UserName プロパティ

データベースでログインにマップされるデータベース ユーザーを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property UserName As String 
    Get
'使用
Dim instance As DatabaseMapping 
Dim value As String 

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

プロパティ値

型: System.String
データベース ユーザーを示す String 値です。

使用例

ユーザー、ロール、およびログインの管理

関連項目

参照

DatabaseMapping クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

プリンシパル (データベース エンジン)