HttpRequestMessageExtensionMethods.SetUserPrincipal Method

Definition

Replaces the user principal associated with the specified HTTP request message.

public static void SetUserPrincipal (this System.Net.Http.HttpRequestMessage httpRequestMessage, System.Security.Principal.IPrincipal user);

Parameters

httpRequestMessage
HttpRequestMessage

The HTTP request message from which to set the user principal.

user
IPrincipal

The user principal to set.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1