HttpRequestMessageExtensionMethods.GetUserPrincipal Method

Definition

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

C#
public static System.Security.Principal.IPrincipal GetUserPrincipal(this System.Net.Http.HttpRequestMessage httpRequestMessage);

Parameters

httpRequestMessage
HttpRequestMessage

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

Returns

The user principal associated with the specified HTTP request message.

Applies to

Toode Versioonid
.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