共用方式為


VersionControlServer.GetItem Method (Int32, Int32)

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 _
) As Item
public Item GetItem(
    int itemId,
    int changesetNumber
)
public:
Item^ GetItem(
    int itemId, 
    int changesetNumber
)
member GetItem : 
        itemId:int * 
        changesetNumber:int -> Item
public function GetItem(
    itemId : int, 
    changesetNumber : int
) : 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