次の方法で共有


UserName プロパティ

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

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

構文

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

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

プロパティ値

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