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
声明
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.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 target 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.
.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.