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!

WindowsIdentity.GetCurrent

Creates a WindowsIdentity object representing the current Windows user.

[Visual Basic]
Public Shared Function GetCurrent() As WindowsIdentity
[C#]
public static WindowsIdentity GetCurrent();
[C++]
public: static WindowsIdentity* GetCurrent();
[JScript]
public static function GetCurrent() : WindowsIdentity;

Return Value

A WindowsIdentity object representing the current user.

Example [C#]

[C#]

WindowsIdentity wi = WindowsIdentity.GetCurrent();

See Also

WindowsIdentity Class | WindowsIdentity Members | System.Security.Principal Namespace