MessageProcessingHandler.Send(HttpRequestMessage, CancellationToken) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends an HTTP request to the inner handler to send to the server.
protected public:
override System::Net::Http::HttpResponseMessage ^ Send(System::Net::Http::HttpRequestMessage ^ request, System::Threading::CancellationToken cancellationToken);
protected internal override sealed System.Net.Http.HttpResponseMessage Send (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
override this.Send : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Protected Friend Overrides NotOverridable Function Send (request As HttpRequestMessage, cancellationToken As CancellationToken) As HttpResponseMessage
- request
- HttpRequestMessage
The HTTP request message to send to the server.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
The HTTP response message.
The cancellation token was canceled. This exception is stored into the returned task.
Produs | Versiuni |
---|---|
.NET | 5, 6, 7, 8, 9 |
Feedback pentru .NET
.NET este un proiect open source. Selectați un link pentru a oferi feedback: