Version

EndEdit(Resource,Boolean) Method

Commits a modified Resource object.
Syntax
'Declaration
 
Public Overloads Overridable Function EndEdit( _
   ByVal resource As Resource, _
   Optional ByVal force As Boolean _
) As ResourceOperationResult
public virtual ResourceOperationResult EndEdit( 
   Resource resource,
   bool force
)

Parameters

resource
Resource object.
force
True to force the edit operation to end. Used when user interface being used to perform the edit operation cannot remain in edit mode.

Return Value

ResourceOperationResult instance which may be initialized with the result asynchronously.
Remarks

EndEdit method is used to commit modifications made to a Resource object after BeginEdit(Resource,DataErrorInfo) is called on it.

Note that the operation of committing a Resource object can be performed either synchronously or asynchronously. If the operation is performed synchronously then the information regarding the result of the operation will be contained in the returned ActivityOperationResult instance. If the operation is performed asynchronously, the method will return an ActivityOperationResult instance whose results will be initialized later when they are available via the ActivityOperationResult's ItemOperationResult<T>.InitializeResult method.

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