This documentation is archived and is not being maintained.

ProjectCollection Class

Represents a collection of projects.

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)

public ref class ProjectCollection sealed : public ReadOnlyList

The ProjectCollection type exposes the following members.

  NameDescription
Public propertyCountGets the number of Project objects in this collection. (Overrides ReadOnlyList::Count.)
Public propertyIsFixedSize Obsolete. (Inherited from ReadOnlyList.)
Public propertyIsReadOnly Obsolete. (Inherited from ReadOnlyList.)
Public propertyIsSynchronized Obsolete. (Inherited from ReadOnlyList.)
Public propertyItem[Int32]Gets the project at the specified index in this collection.
Public propertyItem[String]Gets the project in this collection that is specified by its name.
Public propertySyncRoot Obsolete. (Inherited from ReadOnlyList.)
Top

  NameDescription
Public methodContains(String)Checks whether the project that is specified by its name exists in this collection.
Public methodContains(Project)Checks whether the specified project exists in this collection.
Public methodCopyTo Obsolete. (Inherited from ReadOnlyList.)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetByIdGets a project in this collection by using its ID.
Public methodGetEnumerator (Inherited from ReadOnlyList.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIndexOfGets the index of the specified Project object in this collection.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: