Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
itemId
Type: System.Int32Item identifier.
changeSet
Type: System.Int32Changeset version to obtain.
generateDownloadUrl
Type: System.BooleanIf 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.