Delen via


Repository.QueryItemsById Method

Returns items, based on the given item identifiers and version.

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

Syntax

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

Parameters

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Server.Item[]
Array of items. If an item cannot be found for a given ItemId or if the user does not have permission to access a specific item then the corresponding array position will have a value of null.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace