HttpResponse.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes the socket connection to a client.
public:
void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()
Remarks
This method terminates the connection to the client in an abrupt manner and is not intended for normal HTTP request processing. The method sends a reset packet to the client, which can cause response data that is buffered on the server, the client, or somewhere in between to be dropped.
However, typically you should call CompleteRequest instead if you want to jump ahead to the EndRequest event and send a response to the client.