Version

EndEdit(ActivityBase,Boolean) Method

Commits a new or modified activity.
Syntax
'Declaration
 
Protected Friend Overloads Overridable Function EndEdit( _
   ByVal activity As ActivityBase, _
   ByVal force As Boolean _
) As ActivityOperationResult
protected internal virtual ActivityOperationResult EndEdit( 
   ActivityBase activity,
   bool force
)

Parameters

activity
A new or modified ActivityBase derived instance.
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 and therefore the edit operation must be ended.

Return Value

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

EndEdit method is used to commit a modified activity, or a new activity that was created using the CreateNew method.

True to force the edit operation to end. Used when user interface being used to perform the edit operation cannot remain in edit mode and therefore the edit operation must be ended.

Note that the operation of committing an activity 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. The caller, which may be a schedule control, will indicate via the UI that the operation is pending and when the results are initialized (via ItemOperationResult<T>.InitializeResult), it will show the user with appropriate status of the operation.

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