HttpRequestMessageExtensionMethods::SetUserPrincipal Method (HttpRequestMessage^, IPrincipal^)
.NET Framework (current version)
Replaces the user principal associated with the specified HTTP request message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: [ExtensionAttribute] static void SetUserPrincipal( HttpRequestMessage^ httpRequestMessage, IPrincipal^ user )
Parameters
- httpRequestMessage
-
Type:
System.Net.Http::HttpRequestMessage^
The HTTP request message from which to set the user principal.
- user
-
Type:
System.Security.Principal::IPrincipal^
The user principal to set.
.NET Framework
Available since 4.5
Available since 4.5
Show: