Megosztás a következőn keresztül:


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

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