WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestMode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 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
参数
- requestMessage
- HttpRequestMessage
- requestMode
- BrowserRequestMode
返回
注解
请参阅 https://developer.mozilla.org/en-US/docs/Web/API/Request/mode。