共用方式為


WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestCredentials 方法

定義

為 HTTP 要求設定 'credentials' 選項的值。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpRequestMessage ^ SetBrowserRequestCredentials(System::Net::Http::HttpRequestMessage ^ requestMessage, Microsoft::AspNetCore::Components::WebAssembly::Http::BrowserRequestCredentials requestCredentials);
public static System.Net.Http.HttpRequestMessage SetBrowserRequestCredentials (this System.Net.Http.HttpRequestMessage requestMessage, Microsoft.AspNetCore.Components.WebAssembly.Http.BrowserRequestCredentials requestCredentials);
static member SetBrowserRequestCredentials : System.Net.Http.HttpRequestMessage * Microsoft.AspNetCore.Components.WebAssembly.Http.BrowserRequestCredentials -> System.Net.Http.HttpRequestMessage
<Extension()>
Public Function SetBrowserRequestCredentials (requestMessage As HttpRequestMessage, requestCredentials As BrowserRequestCredentials) As HttpRequestMessage

參數

傳回

HttpRequestMessage

備註

請參閱 https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials

適用於