Version

CancelEdit(ActivityBase,DataErrorInfo) Method

Cancels a new activity that was created by the CreateNew call however one that hasn't been commited yet.
Syntax
'Declaration
 
Public Overloads Overridable Function CancelEdit( _
   ByVal activity As ActivityBase, _
   ByRef errorInfo As DataErrorInfo _
) As Boolean
public virtual bool CancelEdit( 
   ActivityBase activity,
   out DataErrorInfo errorInfo
)

Parameters

activity
ActivityBase derived object that was created using CreateNew method however one that hasn't been committed yet.
errorInfo
If there's an error this will be set to a new DataErrorInfo object with the error information.

Return Value

True to indicate that the operation was successfull, False otherwise.
Remarks

Note: CancelEdit method is called to cancel a new activity that was created using the CreateNew method however the activity must not have been commited yet. This is typically done when the user cancels the dialog for creating a new activity, like the new appointment dialog.

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