DevForce Help Reference
ConnectionStateChanged Event


Fired when the connection state of the EntityManager changes.
Syntax
'Declaration
 
Public Event ConnectionStateChanged As EventHandler(Of ConnectionStateChangedEventArgs)
'Usage
 
Dim instance As EntityManager
Dim handler As EventHandler(Of ConnectionStateChangedEventArgs)
 
AddHandler instance.ConnectionStateChanged, handler
public event EventHandler<ConnectionStateChangedEventArgs> ConnectionStateChanged
Event Data

The event handler receives an argument of type ConnectionStateChangedEventArgs containing data related to this event. The following ConnectionStateChangedEventArgs properties provide information specific to this event.

PropertyDescription
IsConnectedWhether the EntityManager on which this event fired is now connected to an EntityServer.  
Remarks
This event will fire when the EntityManager connects or disconnects from the Entity Server. A connect can occur implicitly, based on arguments to the constructor; or via a call to Connect or ConnectAsync. A disconnect can occur via a call to Disconnect or happen as the result of a communication failure during a request to the EntityServer.

Note that this event will not fire for a lost network connection, as the EntityManager does not monitor network availability. See the System.Net.NetworkInformation.NetworkChange class for more information on monitoring network events.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members

Send Feedback