NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EventLogEntry.UserName

Gets the name of the user responsible for this event.

[Visual Basic]
Public ReadOnly Property UserName As String
[C#]
public string UserName {get;}
[C++]
public: __property String* get_UserName();
[JScript]
public function get UserName() : String;

Property Value

The security identifier (SID) that uniquely identifies a user or group.

Exceptions

Exception Type Condition
SystemException Account information could not be obtained for the user's SID.

Remarks

This property is often blank for events in logs other than the Security log.

See Also

EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace