Partager via


TaskCollection.Contains Method (Task)

 

Determines whether the specified Task object is in the TaskCollection.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean

true if the Task was located in the TaskCollection; otherwise, false.

Implements

ICollection<T>.Contains(T)

See Also

TaskCollection Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top