GetUserPrincipal Method
Collapse the table of content
Expand the table of content

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)

public:
[ExtensionAttribute]
static IPrincipal^ GetUserPrincipal(
	HttpRequestMessage^ httpRequestMessage
)

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:
© 2016 Microsoft