DevForce Help Reference
EntityServerError Event


Raised when an error occurs while accessing the EntityServer or backend data source.
Syntax
'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
Event Data

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.

PropertyDescription
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.  
Remarks
The EntityServerException contained within the EntityServerErrorEventArgs will indicate the OperationType which was requested when the error occurred, and the FailureType of the error. Set Handled to true to indicate that the exception should not be re-thrown.

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.

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
EntityServerException Class

Send Feedback