HttpListenerResponse.Close Method ()

 

Sends the response to the client and releases the resources held by this HttpListenerResponse instance.

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

member Close : unit -> unit

This method closes the response stream and the HttpListenerRequest associated with the response.

The following code example demonstrates calling this method to send a Forbidden (403) response to the client.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: