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)
Syntax
'Declaration
Function GetCollection ( _
id As Guid, _
filterFlags As ServiceHostFilterFlags _
) As TeamProjectCollection
TeamProjectCollection GetCollection(
Guid id,
ServiceHostFilterFlags filterFlags
)
TeamProjectCollection^ GetCollection(
Guid id,
ServiceHostFilterFlags filterFlags
)
abstract GetCollection :
id:Guid *
filterFlags:ServiceHostFilterFlags -> TeamProjectCollection
function GetCollection(
id : Guid,
filterFlags : ServiceHostFilterFlags
) : TeamProjectCollection
Parameters
id
Type: System.Guidthe collection id
filterFlags
Type: Microsoft.TeamFoundation.Framework.Client.ServiceHostFilterFlagsflags to indicate which set of collections to return.
Return Value
Type: Microsoft.TeamFoundation.Framework.Client.TeamProjectCollection
The Team Project Collection.
Exceptions
Exception | Condition |
---|---|
CollectionDoesNotExistException | Thrown if the collection is not found |
.NET Framework Security
- 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.