イベントを発生させたユーザーの名前を取得します。
Public ReadOnly Property UserName As String
[C#]
public string UserName {get;}
[C++]
public: __property String* get_UserName();
[JScript]
public function get UserName() : String;
プロパティ値
ユーザーまたはグループを一意に識別するセキュリティ識別子 (SID: Security Identifier)。
例外
例外の種類 | 条件 |
---|---|
SystemException | ユーザーの SID に対するアカウント情報を取得できませんでした。 |
解説
このプロパティは、セキュリティ ログ以外のログのイベントでは空白になることがあります。
必要条件
プラットフォーム: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
EventLogEntry クラス | EventLogEntry メンバ | System.Diagnostics 名前空間 | Source