Difference.DiffFiles Method (VersionControlServer, IDiffItem, IDiffItem, DiffOptions, String, 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 _
)
public static void DiffFiles(
VersionControlServer versionControl,
IDiffItem source,
IDiffItem target,
DiffOptions diffOpts,
string fileNameForHeader,
bool wait
)
public:
static void DiffFiles(
VersionControlServer^ versionControl,
IDiffItem^ source,
IDiffItem^ target,
DiffOptions^ diffOpts,
String^ fileNameForHeader,
bool wait
)
static member DiffFiles :
versionControl:VersionControlServer *
source:IDiffItem *
target:IDiffItem *
diffOpts:DiffOptions *
fileNameForHeader:string *
wait:bool -> unit
public static function DiffFiles(
versionControl : VersionControlServer,
source : IDiffItem,
target : IDiffItem,
diffOpts : DiffOptions,
fileNameForHeader : String,
wait : 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.
.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.