This documentation is archived and is not being maintained.

TokenImpersonationLevel Enumeration

Defines security impersonation levels. Security impersonation levels govern the degree to which a server process can act on behalf of a client process.

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

[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public enum TokenImpersonationLevel
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public enum TokenImpersonationLevel
SerializableAttribute 
ComVisibleAttribute(true) 
public enum TokenImpersonationLevel

 Member nameDescription
AnonymousThe server process cannot obtain identification information about the client, and it cannot impersonate the client. 
DelegationThe server process can impersonate the client's security context on remote systems. 
IdentificationThe server process can obtain information about the client, such as security identifiers and privileges, but it cannot impersonate the client. This is useful for servers that export their own objects, for example, database products that export tables and views. Using the retrieved client-security information, the server can make access-validation decisions without being able to use other services that are using the client's security context. 
ImpersonationThe server process can impersonate the client's security context on its local system. The server cannot impersonate the client on remote systems. 
NoneAn impersonation level is not assigned. 

Impersonation is the ability of a process to take on the security attributes of another process.

Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: