Abort Method

HttpRequest.Abort Method ()

.NET Framework 4.6 and 4.5

Forcibly terminates the underlying TCP connection, causing any outstanding I/O to fail. You might use this method in response to an attack by a malicious HTTP client.

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

public void Abort()

This method is thread-safe. Any thread may call it at any time.

This method can only be used in integrated mode. If you invoke it in classic mode, an exception is thrown. To determine the pipeline mode, use UsingIntegratedPipeline.

.NET Framework
Available since 4.5
Return to top
© 2015 Microsoft