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

Note: This method is new in the .NET Framework version 2.0.

Closes the connection to the client without sending a response.

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

public void Abort ()
public void Abort ()
public function 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.

Windows 98, Windows Server 2003, Windows XP Media Center Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft