Visual Basic (Declaration) | |
---|---|
Public Event EntityServerError As EventHandler(Of EntityServerErrorEventArgs) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityManager Dim handler As EventHandler(Of EntityServerErrorEventArgs) AddHandler instance.EntityServerError, handler |
C# | |
---|---|
public event EventHandler<EntityServerErrorEventArgs> EntityServerError |
C++/CLI | |
---|---|
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 IdeaBlade.EntityModel.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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family