This documentation is archived and is not being maintained.
ITeamProjectCollectionService::GetCollection Method (Guid, ServiceHostFilterFlags)
Visual Studio 2013
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::TeamProjectCollectionThe Team Project Collection.
| Exception | Condition |
|---|---|
| CollectionDoesNotExistException | Thrown if the collection is not found |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: