Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats Top APIs
    Version Source
  1. Catalog
  2. System.Security.Principal
  3. WindowsIdentity
  4. Impersonate()
  • WindowsIdentity
    • DefaultIssuer
    • WindowsIdentity(IntPtr)
    • WindowsIdentity(String)
    • WindowsIdentity(WindowsIdentity)
    • WindowsIdentity(IntPtr, String)
    • WindowsIdentity(SerializationInfo, StreamingContext)
    • WindowsIdentity(String, String)
    • WindowsIdentity(IntPtr, String, WindowsAccountType)
    • WindowsIdentity(IntPtr, String, WindowsAccountType, Boolean)
    • AccessToken
    • AuthenticationType
    • Claims
    • DeviceClaims
    • Groups
    • ImpersonationLevel
    • IsAnonymous
    • IsAuthenticated
    • IsGuest
    • IsSystem
    • Name
    • Owner
    • Token
    • User
    • UserClaims
    • Clone()
    • Dispose()
    • Dispose(Boolean)
    • GetAnonymous()
    • GetCurrent()
    • GetCurrent(Boolean)
    • GetCurrent(TokenAccessLevels)
    • Impersonate()
    • Impersonate(IntPtr)
    • RunImpersonated(SafeAccessTokenHandle, Action)
    • RunImpersonated<T>(SafeAccessTokenHandle, Func<T>)
    • RunImpersonatedAsync(SafeAccessTokenHandle, Func<Task>)
    • RunImpersonatedAsync<T>(SafeAccessTokenHandle, Func<Task<T>>)
net481
namespace System.Security.Principal
{
    [ComVisible(true)]
    public class WindowsIdentity : ClaimsIdentity, IDisposable, IDeserializationCallback, ISerializable
    {
        [SecuritySafeCritical]
        public virtual WindowsImpersonationContext Impersonate();
    }
}
nuget.org
0.3 %
Reference this API
.NET Framework
2.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1
Information specific to net481
Assembly

mscorlib , Version=4.0.0.0, PublicKeyToken=b77a5c561934e089

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API
Search

01/11/2026
An error has occurred. This application may no longer respond until reloaded. Reload 🗙