This documentation is archived and is not being maintained.

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)

public:
static IDiffItem^ CreateTargetDiffItem(
	VersionControlServer^ versionControl, 
	int itemId, 
	String^ path, 
	VersionSpec^ itemVersion, 
	int deletionId, 
	VersionSpec^ targetVersion
)

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.

Show: