WindowsIdentity.GetCurrent Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: