다음을 통해 공유


DiffSegment Class

A linked list of difference hunks.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Common.DiffSegment

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

Syntax

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

The DiffSegment type exposes the following members.

Constructors

  Name Description
Public method DiffSegment

Top

Properties

  Name Description
Public property LatestByteLength Returns the length in bytes in the latest file stream for this hunk.
Public property LatestLength The length (in tokens) of the latest file in this DiffSegment.
Public property LatestStart The starting token index in the latest file for this DiffSegment.
Public property LatestStartOffset The starting byte offset of the latest file for this hunk.
Public property ModifiedByteLength Returns the length in bytes in the destination file stream for this hunk.
Public property ModifiedLength The length (in tokens) of the modified file in this DiffSegment.
Public property ModifiedStart The starting token index in the modified file for this DiffSegment.
Public property ModifiedStartOffset The index of the starting modifed token in the token array.
Public property Next The next hunk in a DiffSegment sequence. Returns null if this is the end of the list.
Public property OriginalByteLength Returns the length in bytes in original file stream for this hunk.
Public property OriginalLength Returns the number of tokens in the orginal file for this DiffSegment.
Public property OriginalStart Returns the orginal starting token index for this DiffSegment.
Public property OriginalStartOffset The index of the original starting position in the token array.
Public property Type Returns the DiffSegmentType of this DiffSegment. (Common, Modified, Conflict)

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 a string that represents the current object. (Inherited from Object.)

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