Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Abort Method

HttpListenerResponse.Abort Method

Closes the connection to the client without sending a response.

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

public void Abort()

Calling this method on an object that has already been closed has no effect. If the response has not already been closed, this method closes it and the associated HttpListenerRequest and HttpListenerContext objects. The connection to the client is also closed, regardless of the KeepAlive property value of the client request.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft