다음을 통해 공유


CodeFixHandler Class

Definition

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.

Applies to