HttpRequestMessageExtensionMethods.GetUserPrincipal Method (HttpRequestMessage)

.NET Framework (current version)
 

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

<ExtensionAttribute>
Public Shared Function GetUserPrincipal (
	httpRequestMessage As HttpRequestMessage
) As IPrincipal

Parameters

httpRequestMessage
Type: System.Net.Http.HttpRequestMessage

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

Return Value

Type: System.Security.Principal.IPrincipal

The user principal associated with the specified HTTP request message.

.NET Framework
Available since 4.5
Return to top
Show: