共用方式為


ClientHandler.SendAsync(HttpRequestMessage, CancellationToken) 方法

定義

這會調整 HttpRequestMessages 以 ASP.NET Core要求、透過管線分派要求,並傳回相關聯的 HttpResponseMessage。

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)

參數

cancellationToken
CancellationToken

CancellationToken

傳回

Task<TResult> 回 的 HttpResponseMessage

適用於