Bagikan melalui


VersionControlServer.GetItem Method (Int32, Int32, Boolean)

Gets an Item from the repository, based on itemId and changesetNumber.

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

Syntax

'Declaration
Public Function GetItem ( _
    itemId As Integer, _
    changesetNumber As Integer, _
    includeDownloadInfo As Boolean _
) As Item
public Item GetItem(
    int itemId,
    int changesetNumber,
    bool includeDownloadInfo
)
public:
Item^ GetItem(
    int itemId, 
    int changesetNumber, 
    bool includeDownloadInfo
)
member GetItem : 
        itemId:int * 
        changesetNumber:int * 
        includeDownloadInfo:bool -> Item
public function GetItem(
    itemId : int, 
    changesetNumber : int, 
    includeDownloadInfo : boolean
) : Item

Parameters

  • changesetNumber
    Type: System.Int32

    Changeset version of the item.

  • includeDownloadInfo
    Type: System.Boolean

    True to get the information needed to download files. Specify false to save bandwidth if not necessary.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Item
The specified Item. Null if not found.

Remarks

Only set includeDownloadInfo to true if you are going to be downloading the files using the objects that are returned. The call will be faster and require less bandwidth when includeDownloadInfo is false (default for overloads that don't specify it).

.NET Framework Security

See Also

Reference

VersionControlServer Class

GetItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace