HttpRequestMessageExtensionMethods::GetUserPrincipal Method (HttpRequestMessage^)
.NET Framework (current version)
Gets the user principal associated with the specified HTTP request message.
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
Available since 4.5
Show: