HttpClient.CancelPendingRequests HttpClient.CancelPendingRequests HttpClient.CancelPendingRequests HttpClient.CancelPendingRequests Method

定义

取消该实例所有挂起的请求。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.

适用于