Share via


TaskProvider.TaskCollection Class

A container for Task objects.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Shell.TaskProvider.TaskCollection

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public NotInheritable Class TaskCollection _
    Implements IList, ICollection, IEnumerable
public sealed class TaskCollection : IList, 
    ICollection, IEnumerable
public ref class TaskCollection sealed : IList, 
    ICollection, IEnumerable
[<Sealed>]
type TaskCollection =  
    class 
        interface IList 
        interface ICollection 
        interface IEnumerable 
    end
public final class TaskCollection implements IList, ICollection, IEnumerable

The TaskProvider.TaskCollection type exposes the following members.

Constructors

  Name Description
Public method TaskProvider.TaskCollection Initializes a new instance of TaskProvider.TaskCollection for the supplied task provider.

Top

Properties

  Name Description
Public property Count Gets the number of tasks in the collection.
Public property Item Gets or sets the task at the given index.

Top

Methods

  Name Description
Public method Add Adds a task to the collection.
Public method Clear Removes all the tasks from the collection.
Public method Contains Gets whether or not the task exists in the collection
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Gets an enumerator for the collection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Gets the index of the specified task in the collection.
Public method Insert Inserts a task in the collection at the specified index.
Public method Remove Removes a task from the collection.
Public method RemoveAt Removes the task at the specified index.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add Adds the task to the collection.
Explicit interface implemetationPrivate method IList.Clear Removes all the tasks from the list.
Explicit interface implemetationPrivate method IList.Contains Gets whether or not the specified task exists in the collection.
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the collection to an array, starting at the specified index.
Explicit interface implemetationPrivate method IList.IndexOf Gets the index of the collection at which the specified task exists.
Explicit interface implemetationPrivate method IList.Insert Inserts a task in the collection at the specified index.
Explicit interface implemetationPrivate property IList.IsFixedSize Gets whether or not the collection is of a fixed size.
Explicit interface implemetationPrivate property IList.IsReadOnly Gets whether or not the collection is read-only.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets whether or not the collection is synchronized.
Explicit interface implemetationPrivate property IList.Item Gets or sets the task at the specified index.
Explicit interface implemetationPrivate method IList.Remove Removes the specified task from the collection.
Explicit interface implemetationPrivate method IList.RemoveAt Removes the task from the specified index of the collection.
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets the object that can be used to synchronize access to the collection.

Top

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

Reference

Microsoft.VisualStudio.Shell Namespace