HttpRequestMessageExtensionMethods.GetUserPrincipal(HttpRequestMessage) HttpRequestMessageExtensionMethods.GetUserPrincipal(HttpRequestMessage) HttpRequestMessageExtensionMethods.GetUserPrincipal(HttpRequestMessage) Method

Definition

Ruft den Benutzerprinzipal ab, der der angegebenen HTTP-Anforderungsmeldung zugeordnet ist.Gets the user principal associated with the specified HTTP request message.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::Principal::IPrincipal ^ GetUserPrincipal(System::Net::Http::HttpRequestMessage ^ httpRequestMessage);
public static System.Security.Principal.IPrincipal GetUserPrincipal (this System.Net.Http.HttpRequestMessage httpRequestMessage);
static member GetUserPrincipal : System.Net.Http.HttpRequestMessage -> System.Security.Principal.IPrincipal

Parameter

httpRequestMessage
HttpRequestMessage HttpRequestMessage HttpRequestMessage

Die HTTP-Anforderungsmeldung, um den Benutzerprinzipal abzurufen.The HTTP request message from which to get the user principal.

Gibt zurück

Der Benutzerprinzipal, der der angegebenen HTTP-Anforderungsmeldung zugeordnet ist.The user principal associated with the specified HTTP request message.

Gilt für: