WinHttpHandler.SendAsync(HttpRequestMessage, CancellationToken) Método

Definición

Envía una solicitud HTTP como una operación asincrónica.Sends an HTTP request as an asynchronous operation.

protected:
 override System::Threading::Tasks::Task<System::Net::Http::HttpResponseMessage ^> ^ SendAsync(System::Net::Http::HttpRequestMessage ^ request, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
override this.SendAsync : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Protected Overrides Function SendAsync (request As HttpRequestMessage, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)

Parámetros

request
HttpRequestMessage

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

cancellationToken
CancellationToken

Token de cancelación.The cancellation token.

Devoluciones

Task<HttpResponseMessage>

Objeto de tarea que representa la operación asincrónica.The task object representing the asynchronous operation.

Se aplica a