Dela via


RefactoringOperation Members

Include Protected Members
Include Inherited Members

The RefactorOperation manages the whole life cycle of the refactoring operation.

The RefactoringOperation type exposes the following members.

Constructors

 

Name

Description

Protected method

RefactoringOperation

Initializes a new instance of the RefactoringOperation class.

Top

Methods

 

Name

Description

Public method

AddError

Adds a refactoring error to the operation.

Protected method

CancelOperation

The CancelRefactorOperation method exists to allow derived RefactorOperations to cancel the operation based on user input.

Public method

DoOperation

This method starts the whole refactoring process.

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.)

Protected method

OnError

Protected method

OnGetContributorInput

This method is responsible for gathering any necessary input from the user and returning the appropriate ContributorInput class, which is then processed by all of the compatible refactoring contributors.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Protected method

WriteOperationLogData

This method can be overridden in derived classes to write operation data to the refactoring log file.

Top

Fields

 

Name

Description

Public field

AppliedChanges

An EventHandler used after refactoring changes have been applied.

Public field

ApplyingChanges

An EventHandler used while refactoring changes are being applied.

Top

Properties

 

Name

Description

Protected property

ContributorInput

Gets the initial ContributorInput for this refactoring operation.

Public property

CurrentDataSchemaModel

Public property

CurrentProjectHierarchy

Gets the database project on which the refactoring operation is performed.

Protected property

GenerateLog

Gets or sets a value indicating whether a refactoring log file should be generated after changes are applied.

Public property

HasPreviewWindow

Gets or sets a value indicating whether the standard Preview window is displayed.

Protected property

OperationName

Gets the name of this refactoring operation.

Protected property

PreviewWindowInfo

Gets Preview window information, including window title, description, confirm button text, and warning text.

Protected property

UndoDescription

Gets the description that is displayed on the undo stack for this operation.

Top

See Also

Reference

RefactoringOperation Class

Microsoft.VisualStudio.Data.Schema.Project.Refactoring Namespace