Abort Method

WebRequest.Abort Method ()


Aborts the Request

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

abstract Abort : unit -> unit
override Abort : unit -> unit

Exception Condition

Any attempt is made to access the method, when the method is not overridden in a descendant class.

The Abort method cancels asynchronous requests to Internet resources started with the BeginGetResponse method.


The WebRequest class is an abstract class. The actual behavior of WebRequest instances at run time is determined by the descendant class returned by the WebRequest.Create method. For more information about default values and exceptions, see the documentation for the descendant classes, such as HttpWebRequest and FileWebRequest.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft