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
‘선언
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
- versionControl
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer
The version control server.
- itemId
Type: System.Int32
The ID of the item for which to create a diff item.
- path
Type: System.String
The local or server path of the item.
- itemVersion
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version of the item that is specified by path.
- deletionId
Type: System.Int32
The deletion ID for the item, or 0 if the item was not previously deleted.
- targetVersion
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version of the file to create the IDiffItem for.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.IDiffItem
An IDiffItem for the specified 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.