Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft