Dela via


RefactoringOperation.DoOperation Method

This method starts the whole refactoring process.

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

Syntax

'Declaration
Public Sub DoOperation
'Usage
Dim instance As RefactoringOperation

instance.DoOperation()
public void DoOperation()
public:
void DoOperation()
public function DoOperation()

Remarks

The launch point for the refactoring operation must call this method.

The overall flow of a refactoring operation is as follows:

  1. The user interface provides input into an instance of a derivation of this class.

  2. The class can present its own user interface or it can cancel the operation.

  3. A ContributorInput object is created.

  4. The ContributorInput object is provided to the refactoring manager (or to the base class, depending on how you look at it).

  5. A list of ChangeProposal objects is returned.

  6. That list of ChangeProposal objects is merged.

  7. The Preview Changes dialog box is optionally displayed.

  8. Changes are applied or canceled. Changes might fail when they are applied.

.NET Framework Security

See Also

Reference

RefactoringOperation Class

RefactoringOperation Members

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