This documentation is archived and is not being maintained.

ITeamProjectCollectionService.GetCollection Method (Guid)

Retrieve a collection using its unique Id. Only created and registered collections will be returned.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

TeamProjectCollection GetCollection(
	Guid id
)

Parameters

id
Type: System.Guid

the collection id

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.TeamProjectCollection
The Team Project Collection.

ExceptionCondition
CollectionDoesNotExistException

Thrown if the collection is not found

Show: