Share via


TeamFoundationVersionControlService.QueryItemsById Method

Retrieves a list of items from repository, based on itemId and changeset. If an item cannot be found for a specific itemId and changeset then the corresponding element in the item output array will be null.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
Public Function QueryItemsById ( _
    requestContext As TeamFoundationRequestContext, _
    itemIds As Integer(), _
    changeSet As Integer, _
    generateDownloadUrls As Boolean, _
    options As Integer _
) As Item()
public Item[] QueryItemsById(
    TeamFoundationRequestContext requestContext,
    int[] itemIds,
    int changeSet,
    bool generateDownloadUrls,
    int options
)
public:
array<Item^>^ QueryItemsById(
    TeamFoundationRequestContext^ requestContext, 
    array<int>^ itemIds, 
    int changeSet, 
    bool generateDownloadUrls, 
    int options
)
member QueryItemsById : 
        requestContext:TeamFoundationRequestContext * 
        itemIds:int[] * 
        changeSet:int * 
        generateDownloadUrls:bool * 
        options:int -> Item[] 
public function QueryItemsById(
    requestContext : TeamFoundationRequestContext, 
    itemIds : int[], 
    changeSet : int, 
    generateDownloadUrls : boolean, 
    options : int
) : Item[]

Parameters

  • generateDownloadUrls
    Type: System.Boolean

    If true, the server will include the information that is required to download files. Only set this to true if you will be downloading the files that use the objects that are returned. The call will be faster and require less bandwidth when this parameter is false (default for overloads that do not specify it).

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Server.Item[]
Enumerable of items.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace