Returns a System.Security.Principal.WindowsIdentity object that represents the current Windows user.
![]()
An object that represents the current user.
C# Example
WindowsIdentity wi = WindowsIdentity.GetCurrent ();
Console.WriteLine ("\tUserName:\t{0}", wi.Name);
Console.WriteLine ("\tToken:\t\t{0}", wi.Token);