Partilhar via


TaskProvider.TaskCollection Class

Definition

A container for Task objects.

public: ref class TaskProvider::TaskCollection sealed : System::Collections::IList
public sealed class TaskProvider.TaskCollection : System.Collections.IList
type TaskProvider.TaskCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class TaskProvider.TaskCollection
Implements IList
Inheritance
TaskProvider.TaskCollection
Implements

Constructors

TaskProvider.TaskCollection(TaskProvider)

Initializes a new instance of TaskProvider.TaskCollection for the supplied task provider.

Properties

Count

Gets the number of tasks in the collection.

Item[Int32]

Gets or sets the task at the given index.

Methods

Add(Task)

Adds a task to the collection.

Add(TaskListItem)
Clear()

Removes all the tasks from the collection.

Contains(Task)

Gets whether or not the task exists in the collection

Contains(TaskListItem)
GetEnumerator()

Gets an enumerator for the collection.

IndexOf(Task)

Gets the index of the specified task in the collection.

IndexOf(TaskListItem)
Insert(Int32, Task)

Inserts a task in the collection at the specified index.

Insert(Int32, TaskListItem)
Remove(Task)

Removes a task from the collection.

Remove(TaskListItem)
RemoveAt(Int32)

Removes the task at the specified index.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the collection to an array, starting at the specified index.

ICollection.IsSynchronized
ICollection.SyncRoot
IList.Add(Object)

Adds the task to the collection.

IList.Clear()

Removes all the tasks from the list.

IList.Contains(Object)

Gets whether or not the specified task exists in the collection.

IList.IndexOf(Object)

Gets the index of the collection at which the specified task exists.

IList.Insert(Int32, Object)

Inserts a task in the collection at the specified index.

IList.IsFixedSize
IList.IsReadOnly
IList.Item[Int32]
IList.Remove(Object)

Removes the specified task from the collection.

IList.RemoveAt(Int32)

Removes the task from the specified index of the collection.

Applies to