Compares the specified files.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
声明
Public Shared Sub VisualDiffFiles ( _
    versionControl As VersionControlServer, _
    sourceFile As String, _
    sourceVersion As VersionSpec, _
    targetFile As String, _
    targetVersion As VersionSpec _
)
public static void VisualDiffFiles(
    VersionControlServer versionControl,
    string sourceFile,
    VersionSpec sourceVersion,
    string targetFile,
    VersionSpec targetVersion
)
public:
static void VisualDiffFiles(
    VersionControlServer^ versionControl, 
    String^ sourceFile, 
    VersionSpec^ sourceVersion, 
    String^ targetFile, 
    VersionSpec^ targetVersion
)
static member VisualDiffFiles : 
        versionControl:VersionControlServer * 
        sourceFile:string * 
        sourceVersion:VersionSpec * 
        targetFile:string * 
        targetVersion:VersionSpec -> unit 
public static function VisualDiffFiles(
    versionControl : VersionControlServer, 
    sourceFile : String, 
    sourceVersion : VersionSpec, 
    targetFile : String, 
    targetVersion : VersionSpec
)
Parameters
- versionControl
 Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer
 The version control server that contains the specified files.
- sourceFile
 Type: System.String
 The source file to compare to the target.
- sourceVersion
 Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
 The source file version.
- targetFile
 Type: System.String
 The target file.
- targetVersion
 Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
 The target file version.
.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.