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)
Syntax
'Declaration
Function GetCollection ( _
id As Guid _
) As TeamProjectCollection
TeamProjectCollection GetCollection(
Guid id
)
TeamProjectCollection^ GetCollection(
Guid id
)
abstract GetCollection :
id:Guid -> TeamProjectCollection
function GetCollection(
id : Guid
) : TeamProjectCollection
Parameters
id
Type: System.Guidthe collection id
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.