CodeFixHandler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Register a handle for providing code-fix results. This object must be stateless - a new instance can be created each time.
public abstract class CodeFixHandler
type CodeFixHandler = class
Public MustInherit Class CodeFixHandler
- Inheritance
-
CodeFixHandler
Constructors
| CodeFixHandler() |
Properties
| HandlerName |
Get unique name to describe this handler. This correlates the callbacks across invocations and so must be stable across processes. |
Methods
| OnCodeActionApplied(String) |
Callback invoke if the user applies the handler. Note that this may be invoked on a different server then invoked SuggestFixesAsync. |
| SuggestFixesAsync(Engine, CheckResult, CancellationToken) |
Invoked by user when there are errors present - offers possible fixes for the errors. |