HttpRequestMessageExtensionMethods.SetUserPrincipal Methode

Definition

Ersetzt den Benutzerprinzipal, der der angegebenen HTTP-Anforderungsmeldung zugeordnet ist.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetUserPrincipal(System::Net::Http::HttpRequestMessage ^ httpRequestMessage, System::Security::Principal::IPrincipal ^ user);
public static void SetUserPrincipal (this System.Net.Http.HttpRequestMessage httpRequestMessage, System.Security.Principal.IPrincipal user);
static member SetUserPrincipal : System.Net.Http.HttpRequestMessage * System.Security.Principal.IPrincipal -> unit
<Extension()>
Public Sub SetUserPrincipal (httpRequestMessage As HttpRequestMessage, user As IPrincipal)

Parameter

httpRequestMessage
HttpRequestMessage

Die HTTP-Anforderungsmeldung, um den Benutzerprinzipal festzulegen.

user
IPrincipal

Das festzulegende Benutzerprinzipal.

Gilt für