IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : ConnectionStateChanged Event |
'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
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.
Property | Description |
---|---|
IsConnected | Whether the EntityManager on which this event fired is now connected to an 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.
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