WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestCredentials Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Configure une valeur pour l’option « credentials » pour la requête HTTP.
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
Paramètres
- requestMessage
- HttpRequestMessage
L’HttpRequestMessageopérateur
- requestCredentials
- BrowserRequestCredentials
Option BrowserRequestCredentials .
Retours
L’HttpRequestMessageopérateur
Remarques
Consultez https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials.