WebRequestHandler.ImpersonationLevel Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public TokenImpersonationLevel ImpersonationLevel { get; set; }

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