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:
The user interface provides input into an instance of a derivation of this class.
The class can present its own user interface or it can cancel the operation.
A ContributorInput object is created.
The ContributorInput object is provided to the refactoring manager (or to the base class, depending on how you look at it).
A list of ChangeProposal objects is returned.
That list of ChangeProposal objects is merged.
The Preview Changes dialog box is optionally displayed.
Changes are applied or canceled. Changes might fail when they are applied.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Refactoring Namespace