ユーザーの Windows ログオン名を取得します。
Public Overridable ReadOnly Property Name As String Implements _ IIdentity.Name
[C#]
public virtual string Name {get;}
[C++]
public: __property virtual String* get_Name();
[JScript]
public function get Name() : String;
プロパティ値
コードが実行されている対象ユーザーの Windows ログオン名。
実装
解説
このログオン名は、DOMAIN\USERNAME の形式で表されます。
必要条件
プラットフォーム: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
WindowsIdentity クラス | WindowsIdentity メンバ | System.Security.Principal 名前空間