Version

CancelEdit(Resource,DataErrorInfo) Method

Cancels modifications to a Resource object.
Syntax
'Declaration
 
Protected Friend Overloads Overridable Function CancelEdit( _
   ByVal resource As Resource, _
   ByRef errorInfo As DataErrorInfo _
) As Boolean
protected internal virtual bool CancelEdit( 
   Resource resource,
   out DataErrorInfo errorInfo
)

Parameters

resource
Resource object that was put in edit state by BeginEdit(Resource,DataErrorInfo) call.
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 by the XamScheduleDataManager to cancel modifications to a Resource object.

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