Represents a collection of projects.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Common.ReadOnlyList
    Microsoft.TeamFoundation.WorkItemTracking.Client.ProjectCollection
Namespace:  Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly:  Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public NotInheritable Class ProjectCollection _
    Inherits ReadOnlyList
public sealed class ProjectCollection : ReadOnlyList
public ref class ProjectCollection sealed : public ReadOnlyList
[<Sealed>]
type ProjectCollection =  
    class 
        inherit ReadOnlyList 
    end
public final class ProjectCollection extends ReadOnlyList
The ProjectCollection type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | Count | Gets the number of Project objects in this collection. (Overrides ReadOnlyList.Count.) | 
| .gif) | IsFixedSize | Obsolete. (Inherited from ReadOnlyList.) | 
| .gif) | IsReadOnly | Obsolete. (Inherited from ReadOnlyList.) | 
| .gif) | IsSynchronized | Obsolete. (Inherited from ReadOnlyList.) | 
| .gif) | Item[Int32] | Gets the project at the specified index in this collection. | 
| .gif) | Item[String] | Gets the project in this collection that is specified by its name. | 
| .gif) | SyncRoot | Obsolete. (Inherited from ReadOnlyList.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Contains(String) | Checks whether the project that is specified by its name exists in this collection. | 
| .gif) | Contains(Project) | Checks whether the specified project exists in this collection. | 
| .gif) | CopyTo | Obsolete. (Inherited from ReadOnlyList.) | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | GetById | Gets a project in this collection by using its ID. | 
| .gif) | GetEnumerator | (Inherited from ReadOnlyList.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IndexOf | Gets the index of the specified Project object in this collection. | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IList.Add | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.Clear | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.Contains | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | ICollection.CopyTo | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | ICollection.Count | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.IndexOf | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.Insert | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.IsFixedSize | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.IsReadOnly | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | ICollection.IsSynchronized | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.Item | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.Remove | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | IList.RemoveAt | (Inherited from ReadOnlyList.) | 
| .gif) .gif) | ICollection.SyncRoot | (Inherited from ReadOnlyList.) | 
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.