Version

RaiseError Method

This method is called when there's an error.
Syntax
'Declaration
 
Protected Friend Sub RaiseError( _
   ByVal error As DataErrorInfo _
) 
protected internal void RaiseError( 
   DataErrorInfo error
)

Parameters

error
Error information.
Remarks

Derived connectors can call this method when there's an error to notify the data manager and controls of the error. Doing so will cause the data manager to raise its Error event. Also depending upon the severity of the error, the data manager and the controls will take appropriate action to alert the user of the error.

Note that typically there's no need to call this method since most of the operations performed on the data connector return an error as an out parameter (like BeginEdit(ActivityBase,DataErrorInfo) method), or return an operation result object that contains the error information. The caller, typically the XamScheduleDataManager, gets those errors and takes appropriate action. This method should be called when an error occurs outside of these operations or method calls where the XamScheduleDataManager or the view controls do not have any way of knowing. An example would be that a connection to the server is lost and you want to notify the user of that via the view control's error user interface.

Requirements

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