'Declaration Public Event DataProviderError As DataProviderErrorEventHandler
public event DataProviderErrorEventHandler DataProviderError
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.
Property | Description |
---|---|
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. |
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.
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