Поделиться через


Difference.CreateTargetDiffItem Method (VersionControlServer, Int32, String, VersionSpec, Int32, VersionSpec)

Creates a diff item for the specified item.

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

Syntax

'Declaration
Public Shared Function CreateTargetDiffItem ( _
    versionControl As VersionControlServer, _
    itemId As Integer, _
    path As String, _
    itemVersion As VersionSpec, _
    deletionId As Integer, _
    targetVersion As VersionSpec _
) As IDiffItem
public static IDiffItem CreateTargetDiffItem(
    VersionControlServer versionControl,
    int itemId,
    string path,
    VersionSpec itemVersion,
    int deletionId,
    VersionSpec targetVersion
)
public:
static IDiffItem^ CreateTargetDiffItem(
    VersionControlServer^ versionControl, 
    int itemId, 
    String^ path, 
    VersionSpec^ itemVersion, 
    int deletionId, 
    VersionSpec^ targetVersion
)
static member CreateTargetDiffItem : 
        versionControl:VersionControlServer * 
        itemId:int * 
        path:string * 
        itemVersion:VersionSpec * 
        deletionId:int * 
        targetVersion:VersionSpec -> IDiffItem
public static function CreateTargetDiffItem(
    versionControl : VersionControlServer, 
    itemId : int, 
    path : String, 
    itemVersion : VersionSpec, 
    deletionId : int, 
    targetVersion : VersionSpec
) : IDiffItem

Parameters

  • itemId
    Type: System.Int32

    The ID of the item for which to create a diff item.

  • deletionId
    Type: System.Int32

    The deletion ID for the item, or 0 if the item was not previously deleted.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.IDiffItem
An IDiffItem for the specified item.

.NET Framework Security

See Also

Reference

Difference Class

CreateTargetDiffItem Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace