HttpRequestMessageExtensionMethods.SetUserPrincipal Метод

Определение

Заменяет субъект пользователя, связанный с указанным сообщением HTTP-запроса.

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)

Параметры

httpRequestMessage
HttpRequestMessage

Сообщение HTTP-запроса, из которого необходимо задать субъект-пользователь.

user
IPrincipal

Субъект-пользователь, который нужно задать.

Применяется к