Share via


TaskCollection Class

 

Represents a collection of Task objects that are displayed in the task pane of the Dashboard.

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

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Administration.ObjectModel.TaskCollection

Syntax

[SerializableAttribute]
public sealed class TaskCollection : ICollection<Task>, IEnumerable<Task>, 
    IEnumerable
[SerializableAttribute]
public ref class TaskCollection sealed : ICollection<Task^>, 
    IEnumerable<Task^>, IEnumerable
<SerializableAttribute>
Public NotInheritable Class TaskCollection
    Implements ICollection(Of Task), IEnumerable(Of Task), IEnumerable

Constructors

Name Description
System_CAPS_pubmethod TaskCollection()

Initializes a new instance of the TaskCollection class.

Properties

Name Description
System_CAPS_pubproperty Count

Gets the number of Task objects in the TaskCollection.

System_CAPS_pubproperty IsReadOnly

Gets a value that indicates whether the TaskCollection is read-only.

Methods

Name Description
System_CAPS_pubmethod Add(Task)

Adds the specified Task object to the TaskCollection.

System_CAPS_pubmethod Clear()

Removes all Task objects from the TaskCollection.

System_CAPS_pubmethod Contains(Task)

Determines whether the specified Task object is in the TaskCollection.

System_CAPS_pubmethod CopyTo(Task[], Int32)

Copies the entire TaskCollection to a compatible one-dimensional array, starting at the specified index of the target array.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Returns an enumerator that is used to iterate through the TaskCollection.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Remove(Task)

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Returns an IEnumerator that can iterate through a collection.

Remarks

A TaskCollection is passed as an argument to one of the Create methods of PageContent.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top