Compartir a través de


DiffSummary Class

A summary of the differences between two files

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Common.DiffSummary

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

Syntax

'Declaration
Public Class DiffSummary
public class DiffSummary
public ref class DiffSummary
type DiffSummary =  class end
public class DiffSummary

The DiffSummary type exposes the following members.

Constructors

  Name Description
Public method DiffSummary(DiffFile, DiffFile, array<IDiffChange[], Boolean) Constructs a new DiffSummary from the given files and diff change list. The diff change list will be included in the summary if it is requested.
Public method DiffSummary(Int32, Int32, Int32, Int32, Int32) Creates a DiffSummary with the given values

Top

Properties

  Name Description
Public property Changes The list of changes
Public property ModifiedLineCount The number of lines in the modified file
Public property OriginalLineCount The number of lines in the original file
Public property TotalLinesAdded The total number of lines that were added
Public property TotalLinesDeleted The total number of lines that were deleted
Public property TotalLinesModified The total number of lines that were modified

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the DiffSummary as a string (Overrides Object.ToString().)

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.Common Namespace