Share via


CodeRefactoringContext.RegisterRefactoring(CodeAction) Method

Definition

Add supplied action to the list of refactorings that will be offered to the user.

public:
 void RegisterRefactoring(Microsoft::CodeAnalysis::CodeActions::CodeAction ^ action);
public void RegisterRefactoring (Microsoft.CodeAnalysis.CodeActions.CodeAction action);
member this.RegisterRefactoring : Microsoft.CodeAnalysis.CodeActions.CodeAction -> unit
Public Sub RegisterRefactoring (action As CodeAction)

Parameters

action
CodeAction

The CodeAction that will be invoked to apply the refactoring.

Applies to