WebRequestHandler::ImpersonationLevel Property

.NET Framework (current version)

Gets or sets the impersonation level for the current request.

Namespace:   System.Net.Http
Assembly:  System.Net.Http.WebRequest (in System.Net.Http.WebRequest.dll)

property TokenImpersonationLevel ImpersonationLevel {
	TokenImpersonationLevel get();
	void set(TokenImpersonationLevel value);

Property Value

Type: System.Security.Principal::TokenImpersonationLevel

Returns TokenImpersonationLevel.

The impersonation level for the request. The default is Delegation.

The impersonation level determines how the server can use the client's credentials.

.NET Framework
Available since 4.5
Return to top