Compartilhar via


VersionControlServer.GetItem Method (Int32, Int32, GetItemsOptions)

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

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

Syntax

'Declaração
Public Function GetItem ( _
    itemId As Integer, _
    changesetNumber As Integer, _
    options As GetItemsOptions _
) As Item
public Item GetItem(
    int itemId,
    int changesetNumber,
    GetItemsOptions options
)
public:
Item^ GetItem(
    int itemId, 
    int changesetNumber, 
    GetItemsOptions options
)
member GetItem : 
        itemId:int * 
        changesetNumber:int * 
        options:GetItemsOptions -> Item 
public function GetItem(
    itemId : int, 
    changesetNumber : int, 
    options : GetItemsOptions
) : Item

Parameters

  • changesetNumber
    Type: System.Int32
    Changeset version of the item.

Return Value

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

.NET Framework Security

See Also

Reference

VersionControlServer Class

GetItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace