System.Security.Principal.WindowsIdentity.WindowsIdentity.WindowsIdentity.GetCurrent C# (CSharp) Method

GetCurrent() public static method

public static GetCurrent ( ) : System.Security.Principal.WindowsIdentity
return System.Security.Principal.WindowsIdentity
		public static WindowsIdentity GetCurrent ()
		{
			return new WindowsIdentity (GetCurrentToken (), null, WindowsAccountType.Normal, true);
		}
#if NET_2_0

Same methods

WindowsIdentity.WindowsIdentity.WindowsIdentity::GetCurrent ( TokenAccessLevels desiredAccess ) : System.Security.Principal.WindowsIdentity
WindowsIdentity.WindowsIdentity.WindowsIdentity::GetCurrent ( bool ifImpersonating ) : System.Security.Principal.WindowsIdentity