Delen via


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

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

See Also

Reference

ITeamProjectCollectionService Interface

GetCollection Overload

Microsoft.TeamFoundation.Framework.Client Namespace