IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : EntityServerError Event |
'Declaration
Public Event EntityServerError As EventHandler(Of EntityServerErrorEventArgs)
'Usage
Dim instance As EntityManager Dim handler As EventHandler(Of EntityServerErrorEventArgs) AddHandler instance.EntityServerError, handler
public event EventHandler<EntityServerErrorEventArgs> EntityServerError
The event handler receives an argument of type EntityServerErrorEventArgs containing data related to this event. The following EntityServerErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Exception | The exception for the error condition. |
Handled | Set to true if the exception has been handled, otherwise the exception will be thrown back to the caller. |
The EntityServerError event is raised for any type of exception condition which occurs while accessing the EntityServer, including during Connect and Login processing, fetching data, or saving data via SaveChanges.
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