EventLogEntry.UserName 屬性

定義

取得為這個事件負責的使用者名稱。

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

屬性值

安全識別項 (SID),可以唯一識別使用者或群組。

例外狀況

無法為使用者的 SID 取得帳戶資訊。

備註

除了安全性記錄以外的記錄檔中,此屬性通常是空白的。

適用於

另請參閱