HttpClient.CancelPendingRequests 方法

定義

取消這個執行個體上的所有暫止要求。Cancel all pending requests on this instance.

public:
 void CancelPendingRequests();
public void CancelPendingRequests ();
member this.CancelPendingRequests : unit -> unit
Public Sub CancelPendingRequests ()

備註

呼叫這個方法之後, HttpClient 仍然可以使用實例來執行其他要求。After calling this method, the HttpClient instance can still be used to execute additional requests.

適用於