共用方式為


TaskProvider.TaskCollection Members

Include Protected Members
Include Inherited Members

A container for Task objects.

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

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.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
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

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

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

See Also

Reference

TaskProvider.TaskCollection Class

Microsoft.VisualStudio.Shell Namespace