Compartilhar via


SnapshotDifferenceChangeEventArgs Class

Used in conjunction with the SnapshotDifferenceChanging and SnapshotDifferenceChanged events.

Inheritance Hierarchy

Object
  EventArgs
    Microsoft.VisualStudio.Text.Differencing.SnapshotDifferenceChangeEventArgs

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public Class SnapshotDifferenceChangeEventArgs _
    Inherits EventArgs
public class SnapshotDifferenceChangeEventArgs : EventArgs
public ref class SnapshotDifferenceChangeEventArgs : public EventArgs
type SnapshotDifferenceChangeEventArgs =  
    class 
        inherit EventArgs 
    end
public class SnapshotDifferenceChangeEventArgs extends EventArgs

The SnapshotDifferenceChangeEventArgs type exposes the following members.

Constructors

  Name Description
Public method SnapshotDifferenceChangeEventArgs Initializes a new instance of SnapshotDifferenceChangeEventArgs from the given before and after ISnapshotDifference objects.

Top

Properties

  Name Description
Public property After Gets the ISnapshotDifference after the change. If this is a SnapshotDifferenceChanging event, this property is nulla null reference (Nothing in Visual Basic), because it hasn't been computed yet.
Public property Before Gets the ISnapshotDifference before the change, which is nulla null reference (Nothing in Visual Basic) for the first change event.

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.VisualStudio.Text.Differencing Namespace