Прочитај на енглеском Уреди

Делите путем


WebClientAsyncResult.Abort Method

Definition

Cancels an asynchronous XML Web service request.

C#
public void Abort();

Examples

The XML Web service request is canceled if the underlying transport supports the WebRequest.Abort method. If the corresponding End method is subsequently called after the Abort method, a WebException is thrown, setting the Status property to RequestCanceled.

Applies to

Производ Верзије
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1