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 | |
---|---|---|
FileChange(String) | Initializes a new instance of the FileChange class. | |
FileChange(String, String) | Initializes a new instance of the FileChange class. |
Top
Properties
Name | Description | |
---|---|---|
FileName | Gets the name of this file. | |
IsFileModified | Gets a value that indicates whether any change in this file is included in the list of changes that are applied. | |
ProjectName | The name of the project of this file, if a parent project exists. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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