Export (0) Print
Expand All

HttpResponse.Close Method

Closes the socket connection to a client.

[Visual Basic]
Public Sub Close()
[C#]
public void Close();
[C++]
public: void Close();
[JScript]
public function Close();

Example

The following example closes the socket connection if content is to be suppressed.

[Visual Basic] 
If Response.SuppressContent Then Response.Close()
    

[C#] 
if (Response.SuppressContent) Response.Close();
    

[C++] 
if (Response->SuppressContent) Response->Close();


[JScript] 
if(Response.SuppressContent)
  Response.Close()
    

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Show:
© 2014 Microsoft