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
'Declaración
Public NotInheritable Class TaskCollection _
Implements IList, ICollection, IEnumerable
public sealed class TaskCollection : IList,
ICollection, IEnumerable
The TaskProvider.TaskCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TaskProvider.TaskCollection | Initializes a new instance of TaskProvider.TaskCollection for the supplied task provider. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of tasks in the collection. | |
Item | Gets or sets the task at the given index. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds a task to the collection. | |
Clear | Removes all the tasks from the collection. | |
Contains | Gets whether or not the task exists in the collection | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetEnumerator | Gets an enumerator for the collection. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf | Gets the index of the specified task in the collection. | |
Insert | Inserts a task in the collection at the specified index. | |
Remove | Removes a task from the collection. | |
RemoveAt | Removes the task at the specified index. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | Adds the task to the collection. | |
IList.Clear | Removes all the tasks from the list. | |
IList.Contains | Gets whether or not the specified task exists in the collection. | |
ICollection.CopyTo | Copies the collection to an array, starting at the specified index. | |
IList.IndexOf | Gets the index of the collection at which the specified task exists. | |
IList.Insert | Inserts a task in the collection at the specified index. | |
IList.IsFixedSize | Gets whether or not the collection is of a fixed size. | |
IList.IsReadOnly | Gets whether or not the collection is read-only. | |
ICollection.IsSynchronized | Gets whether or not the collection is synchronized. | |
IList.Item | Gets or sets the task at the specified index. | |
IList.Remove | Removes the specified task from the collection. | |
IList.RemoveAt | Removes the task from the specified index of the collection. | |
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.