Szerkesztés

Megosztás a következőn keresztül:


DelegatingHandler.Send(HttpRequestMessage, CancellationToken) Method

Definition

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 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 Function Send (request As HttpRequestMessage, cancellationToken As CancellationToken) As HttpResponseMessage

Parameters

request
HttpRequestMessage

The HTTP request message to send to the server.

cancellationToken
CancellationToken

A cancellation token to cancel operation.

Returns

An HTTP response message.

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Remarks

The Send method is mainly used by the system and not by applications. When this method is called, it calls the Send method on the inner handler.

Applies to