HttpMessageHandler.Send(HttpRequestMessage, CancellationToken) Método

Definición

Cuando se invalida en una clase derivada, envía una solicitud HTTP con el token de cancelación y la solicitud especificados.When overridden in a derived class, sends an HTTP request with the specified request and cancellation token. En caso contrario, produce una excepción NotSupportedException.Otherwise, throws a NotSupportedException.

protected public:
 virtual System::Net::Http::HttpResponseMessage ^ Send(System::Net::Http::HttpRequestMessage ^ request, System::Threading::CancellationToken cancellationToken);
protected internal virtual System.Net.Http.HttpResponseMessage Send (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
abstract member Send : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
override this.Send : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Protected Friend Overridable Function Send (request As HttpRequestMessage, cancellationToken As CancellationToken) As HttpResponseMessage

Parámetros

request
HttpRequestMessage

Mensaje de la solicitud HTTP que se va a enviar.The HTTP request message to send.

cancellationToken
CancellationToken

Token de cancelación para cancelar la operación.The cancellation token to cancel operation.

Devoluciones

HttpResponseMessage

Mensaje de respuesta HTTP.The HTTP response message.

Excepciones

Este método no se invalida en la clase derivada.The method is not overridden in the derived class.

Se aplica a