HttpRequestMessageExtensionMethods::SetUserPrincipal Method (HttpRequestMessage^, IPrincipal^)

.NET Framework (current version)
 

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

Namespace:   System.ServiceModel.Channels
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
Return to top
Show: