Export (0) Print
Expand All

HttpListenerResponse.Abort Method

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 ()
Not applicable.

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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft