Version

Remove Method

Removes an activity.
Syntax
'Declaration
 
Protected Friend Overrides Function Remove( _
   ByVal activity As Infragistics.Controls.Schedules.ActivityBase _
) As Infragistics.Controls.Schedules.ActivityOperationResult
protected internal override Infragistics.Controls.Schedules.ActivityOperationResult Remove( 
   Infragistics.Controls.Schedules.ActivityBase activity
)

Parameters

activity
ActivityBase derived instance to remove.

Return Value

Infragistics.Controls.Schedules.ActivityOperationResult instance.
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 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 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