TeamFoundationVersionControlService.QueryItemById Method

Retrieve an item from repository, based on itemId and changeset.

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

Syntax

'Declaration
Public Function QueryItemById ( _
    requestContext As TeamFoundationRequestContext, _
    itemId As Integer, _
    changeSet As Integer, _
    generateDownloadUrl As Boolean _
) As Item
public Item QueryItemById(
    TeamFoundationRequestContext requestContext,
    int itemId,
    int changeSet,
    bool generateDownloadUrl
)
public:
Item^ QueryItemById(
    TeamFoundationRequestContext^ requestContext, 
    int itemId, 
    int changeSet, 
    bool generateDownloadUrl
)
member QueryItemById : 
        requestContext:TeamFoundationRequestContext * 
        itemId:int * 
        changeSet:int * 
        generateDownloadUrl:bool -> Item
public function QueryItemById(
    requestContext : TeamFoundationRequestContext, 
    itemId : int, 
    changeSet : int, 
    generateDownloadUrl : boolean
) : Item

Parameters

  • generateDownloadUrl
    Type: System.Boolean

    If true, the server will include the information that is required to download the file. Only set this to true if you will be downloading the file that uses the object that is returned. The call will be faster and require less bandwidth when this parameter is false.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Server.Item
The item

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace