共用方式為


WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestMode 方法

定義

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

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

參數

傳回

HttpRequestMessage

備註

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

適用於