This documentation is archived and is not being maintained.

Difference::CreateTargetDiffItem Method (VersionControlServer, PendingChange, VersionSpec)

Creates a diff item for the specified file by using a pending change object at the specified target version.

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

public:
static IDiffItem^ CreateTargetDiffItem(
	VersionControlServer^ versionControl, 
	PendingChange^ change, 
	VersionSpec^ targetVersion
)

Parameters

versionControl
Type: Microsoft.TeamFoundation.VersionControl.Client::VersionControlServer

The version control server.

change
Type: Microsoft.TeamFoundation.VersionControl.Client::PendingChange

The pending change describing the item.

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 pending change.

Show: