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
WindowsIdentity.WindowsIdentity.WindowsIdentity::GetCurrent ( TokenAccessLevels desiredAccess ) : System.Security.Principal.WindowsIdentity | |
WindowsIdentity.WindowsIdentity.WindowsIdentity::GetCurrent ( bool ifImpersonating ) : System.Security.Principal.WindowsIdentity |