Export (0) Print
Expand All

HttpResponse::IsClientConnected Property

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

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

public:
property bool IsClientConnected {
	bool get ();
}

Property Value

Type: System::Boolean
true if the client is currently connected; otherwise, false.

The IsClientConnected property returns false when the following conditions are true:

The following example uses the IsClientConnected property to check whether the client that is requesting the page remains connected to the server. If IsClientConnected is true, the code calls the Redirect method, and the client will view another page. If IsClientConnected is false, then the code calls the End method and all page processing is terminated.

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft