WindowsIdentity.GetCurrent Method
.NET Framework (current version)
Returns a WindowsIdentity object that represents the current Windows user.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | GetCurrent() | Returns a WindowsIdentity object that represents the current Windows user. |
![]() ![]() | GetCurrent(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. |
![]() ![]() | GetCurrent(TokenAccessLevels) | Returns a WindowsIdentity object that represents the current Windows user, using the specified desired token access level. |
Show:

