Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WindowsIdentity::ImpersonationLevel Property

 

Gets the impersonation level for the user.

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

public:
[ComVisibleAttribute(false)]
property TokenImpersonationLevel ImpersonationLevel {
	TokenImpersonationLevel get();
}

Property Value

Type: System.Security.Principal::TokenImpersonationLevel

One of the enumeration values that specifies the impersonation level.

Describes the impersonation level to be used to connect to WMI.

The following code example shows the use of the ImpersonationLevel property to display the impersonation level for the current user. This code example is part of a larger example provided for the WindowsIdentity class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft