Freigeben über


Difference Class

Contains methods for performing difference (diff) operations on two files.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.Difference

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public NotInheritable Class Difference
public static class Difference
public ref class Difference abstract sealed
[<AbstractClass>]
[<Sealed>]
type Difference =  class end
public final class Difference

The Difference type exposes the following members.

Methods

  Name Description
Public methodStatic member CreateTargetDiffItem(VersionControlServer, PendingChange, VersionSpec) Creates a diff item for the specified file using a pending change object at the specified target version.
Public methodStatic member CreateTargetDiffItem(VersionControlServer, String, VersionSpec, Int32, VersionSpec) Creates a diff item for the specified item.
Public methodStatic member CreateTargetDiffItem(VersionControlServer, Int32, String, VersionSpec, Int32, VersionSpec) Creates a diff item for the specified item.
Public methodStatic member DiffFiles(String, Int32, String, Int32, DiffOptions) Compares two files by using the internal diff engine, and returns the linked list of DiffSegments.
Public methodStatic member DiffFiles(VersionControlServer, IDiffItem, IDiffItem, DiffOptions, String, Boolean) Compares two files by using the internal diff engine.
Public methodStatic member IsEncodingSupported(Int32) Checks whether the specified encoding is supported by the diff/merge engine.
Public methodStatic member IsEncodingSupported(Encoding) Checks whether the specified encoding is supported by the diff/merge engine.
Public methodStatic member VisualDiffFiles Compares the specified files.
Public methodStatic member VisualDiffItems Compares the specified files for differences.
Public methodStatic member VisualDiffShelvedChange Compares the specified shelved changes for differences.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace