Version

DataProviderError Event

Event fired in response to a data-related error or condition that has prevented an operation from being completed.
Syntax
'Declaration
 
Public Event DataProviderError As DataProviderErrorEventHandler
public event DataProviderErrorEventHandler DataProviderError
Event Data

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

PropertyDescription
Condition The ErrorCondition enumeration constant associated with the current data provider error.
DataContext The DataContext being performed at the time of the DataProviderError event, if any.
Exception Exception thrown by the .NET Framework leading to the firing of this DataProviderError event.
Message Message text describing the error that has occured.
Remarks

This event fires in response to a number of data-related, connection-related, or bind-related error conditions (see ErrorCondition for a list of causes). Most of these errors are related to an Exception that has been caught from the underlying .NET data provider when trying to use the Connection or commands configured within the OperationContext. Binding errors occur due to type or name mismatches between WebSchedule data model and WebSchedule object model as defined by the ScheduleDataBinding. Concurrency errors occur in multi-user environments when an attempt is made to update the data store with an old copy of an object, and these are trapped so an application can notify the end user that their change could not be made.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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