次の方法で共有


Connection.UserName プロパティ

定義

ユーザーの Windows ドメインまたはローカル アカウント名を取得します。

public:
 property System::String ^ UserName { System::String ^ get(); };
public string UserName { get; }
member this.UserName : string
Public ReadOnly Property UserName As String

プロパティ値

この接続で使用されている資格情報を持つユーザーの Windows ドメインまたはローカル アカウント名。

public string UserName(IServiceProvider sp) {
    Connection con = (Connection)sp.GetService(typeof(Connection));
    return con.UserName;
}

適用対象