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

适用于