This documentation is archived and is not being maintained.

Difference::DiffFiles Method (VersionControlServer, IDiffItem, IDiffItem, DiffOptions, String, Boolean, Boolean)

Compares two files by using the internal diff engine.

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

public:
static void DiffFiles(
	VersionControlServer^ versionControl, 
	IDiffItem^ source, 
	IDiffItem^ target, 
	DiffOptions^ diffOpts, 
	String^ fileNameForHeader, 
	bool wait, 
	bool modalExperience
)

Parameters

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

The version control server.

source
Type: Microsoft.TeamFoundation.VersionControl.Client::IDiffItem

The local path of the source file.

target
Type: Microsoft.TeamFoundation.VersionControl.Client::IDiffItem

The local path of the destination file.

diffOpts
Type: Microsoft.TeamFoundation.VersionControl.Common::DiffOptions

Options for the difference operation.

fileNameForHeader
Type: System::String

True to use the file name as the header; otherwise, false.

wait
Type: System::Boolean

True to wait; otherwise, false.

modalExperience
Type: System::Boolean

True to have diff come up in modal experience; otherwise, false.

Show: