Abort Method

FileWebRequest.Abort Method ()


Cancels a request to an Internet resource.

Namespace:   System.Net
Assembly:  System (in System.dll)

override Abort : unit -> unit

The Abort method cancels a request to a resource. After a request is canceled, calling the GetResponse, BeginGetResponse, EndGetResponse, GetRequestStream, BeginGetRequestStream, or EndGetRequestStream method causes a WebException with the Status property set to RequestCanceled.

Note   This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft