Version

CancelEdit(Resource,DataErrorInfo) Method

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

Parameters

resource
Resource object.
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 modifications that were made to a Resource object after BeginEdit(Resource,DataErrorInfo) method was called on it.

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