Share via


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

  • fileNameForHeader
    Type: System.String

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

  • modalExperience
    Type: System.Boolean

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

.NET Framework Security

See Also

Reference

Difference Class

DiffFiles Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace