HttpRequestMessageExtensionMethods.GetUserPrincipal 方法

定义

获取与指定的 HTTP 请求消息相关的用户主体。

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
<Extension()>
Public Function GetUserPrincipal (httpRequestMessage As HttpRequestMessage) As IPrincipal

参数

httpRequestMessage
HttpRequestMessage

来自获取用户主体的 HTTP 请求消息。

返回

与指定的 HTTP 请求消息相关的用户主体。

适用于