Export (0) Print
Expand All

ITeamProjectCollectionService.GetCollection Method (Guid, ServiceHostFilterFlags)

Retrieve a collection using its unique Id.

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

TeamProjectCollection GetCollection(
	Guid id,
	ServiceHostFilterFlags filterFlags
)

Parameters

id
Type: System.Guid

the collection id

filterFlags
Type: Microsoft.TeamFoundation.Framework.Client.ServiceHostFilterFlags

flags to indicate which set of collections to return.

Return Value

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

ExceptionCondition
CollectionDoesNotExistException

Thrown if the collection is not found

Show:
© 2014 Microsoft