Partager via


TaskCollection.Remove Method (Task)

 

Removes the first occurrence of the specified Task object from the TaskCollection.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

public bool Remove(
    Task item
)
public:
virtual bool Remove(
    Task^ item
) sealed
Public Function Remove (
    item As Task
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the Task object is successfully removed; otherwise, false. This method also returns false if the Task object was not found in the TaskCollection.

Implements

ICollection<T>.Remove(T)

See Also

TaskCollection Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top