Share via


FileChange Class

Represents changes for one file. Those changes can be from different refactoring contributors and can be from different refactoring preview groups. After the refactoring contributor manager returns a list of ChangeProposal, RefactoringOperation groups those changes to a list of FileChange. The refactoring operation uses this list of FileChange to apply change to each file. The refactoring operation also converts this list to a list of PreviewChangesNode, and displays the changes in the preview dialog box. For more information, see Create Custom Database Refactoring Types or Targets.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Schema.Package.Refactoring.FileChange

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Refactoring
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Public NotInheritable Class FileChange
public sealed class FileChange
public ref class FileChange sealed
[<Sealed>]
type FileChange =  class end
public final class FileChange

The FileChange type exposes the following members.

Constructors

  Name Description
Public method FileChange(String) Initializes a new instance of the FileChange class.
Public method FileChange(String, String) Initializes a new instance of the FileChange class.

Top

Properties

  Name Description
Public property FileName Gets the name of this file.
Public property IsFileModified Gets a value that indicates whether any change in this file is included in the list of changes that are applied.
Public property ProjectName The name of the project of this file, if a parent project exists.

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 a hash function for a particular type. (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.Data.Schema.Package.Refactoring Namespace