WebClientAsyncResult.Abort 方法

定義

取消非同步 XML Web Service 要求。

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

範例

如果基礎傳輸支援方法,就會取消 XML Web Service 要求 WebRequest.Abort 。 如果後續在 End 方法之後呼叫對應的方法 AbortWebException 則會擲回,並將 Status 屬性設定為 RequestCanceled

適用於