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)
Syntax
'Declaration
Public Shared Sub DiffFiles ( _
versionControl As VersionControlServer, _
source As IDiffItem, _
target As IDiffItem, _
diffOpts As DiffOptions, _
fileNameForHeader As String, _
wait As Boolean, _
modalExperience As Boolean _
)
public static void DiffFiles(
VersionControlServer versionControl,
IDiffItem source,
IDiffItem target,
DiffOptions diffOpts,
string fileNameForHeader,
bool wait,
bool modalExperience
)
public:
static void DiffFiles(
VersionControlServer^ versionControl,
IDiffItem^ source,
IDiffItem^ target,
DiffOptions^ diffOpts,
String^ fileNameForHeader,
bool wait,
bool modalExperience
)
static member DiffFiles :
versionControl:VersionControlServer *
source:IDiffItem *
target:IDiffItem *
diffOpts:DiffOptions *
fileNameForHeader:string *
wait:bool *
modalExperience:bool -> unit
public static function DiffFiles(
versionControl : VersionControlServer,
source : IDiffItem,
target : IDiffItem,
diffOpts : DiffOptions,
fileNameForHeader : String,
wait : boolean,
modalExperience : boolean
)
Parameters
versionControl
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServerThe version control server.
source
Type: Microsoft.TeamFoundation.VersionControl.Client.IDiffItemThe local path of the source file.
target
Type: Microsoft.TeamFoundation.VersionControl.Client.IDiffItemThe local path of the destination file.
diffOpts
Type: Microsoft.TeamFoundation.VersionControl.Common.DiffOptionsOptions for the difference operation.
fileNameForHeader
Type: System.StringTrue to use the file name as the header; otherwise, false.
wait
Type: System.BooleanTrue to wait; otherwise, false.
modalExperience
Type: System.BooleanTrue to have diff come up in modal experience; otherwise, false.
.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.