Version

Remove Method (ScheduleDataConnectorBase)

Removes an activity.
Syntax
'Declaration
 
Protected Friend MustOverride Function Remove( _
   ByVal activity As ActivityBase _
) As ActivityOperationResult
protected internal abstract ActivityOperationResult Remove( 
   ActivityBase activity
)

Parameters

activity
ActivityBase derived instance to remove.

Return Value

Remarks

Note that the operation of removing 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