Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpResponse.IsClientConnected Property

Gets a value indicating whether the client is still connected to the server.

[Visual Basic]
Public ReadOnly Property IsClientConnected As Boolean
[C#]
public bool IsClientConnected {get;}
[C++]
public: __property bool get_IsClientConnected();
[JScript]
public function get IsClientConnected() : Boolean;

Property Value

true if the client is currently connected; otherwise, false.

Example

The following example takes action if the client is currently connected.

[Visual Basic] 
If Response.IsClientConnected = True Then
    '...
 End If
    

[C#] 
if (Response.IsClientConnected == true) 
 {
    //...
 }
    

[C++] 
if (Response->IsClientConnected) 
 {
    //...
 }
    

[JScript] 
if(Response.IsClientConnected){
  //...
}

Requirements

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

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.