Click or drag to resize

CodeAction Class



An action produced by a CodeFixProvider or a CodeRefactoringProvider.
Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis.CodeActions
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class CodeAction

The CodeAction type exposes the following members.

Constructors
  NameDescription
Protected methodCodeAction
Initializes a new instance of the CodeAction class
Top
Properties
  NameDescription
Public propertyEquivalenceKey
Two code actions are treated as equivalent if they have equal non-null EquivalenceKey values and were generated by the same CodeFixProvider or CodeRefactoringProvider.
Public propertyTags
Descriptive tags from WellKnownTags. These tags may influence how the item is displayed.
Public propertyTitle
A short title describing the action that may appear in a menu.
Top
Methods
See Also