WindowsIdentity.GetCurrent Method

 

Returns a WindowsIdentity object that represents the current Windows user.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetCurrent()

Returns a WindowsIdentity object that represents the current Windows user.

System_CAPS_pubmethodSystem_CAPS_staticGetCurrent(Boolean)

Returns a WindowsIdentity object that represents the Windows identity for either the thread or the process, depending on the value of the ifImpersonating parameter.

System_CAPS_pubmethodSystem_CAPS_staticGetCurrent(TokenAccessLevels)

Returns a WindowsIdentity object that represents the current Windows user, using the specified desired token access level.

Return to top
Show: