Click or drag to resize

FixAllContext Class



Context for "Fix all occurrences" code fixes provided by an FixAllProvider.
Context for "Fix all occurrences" code fixes provided by an FixAllProvider.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CodeFixesFixAllContext

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

The FixAllContext type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCancellationToken
CancellationToken for fix all session.
Public propertyCodeActionEquivalenceKey
The EquivalenceKey value expected of a CodeAction participating in this fix all.
Public propertyCodeFixProvider
Underlying CodeFixProvider which triggered this fix all.
Public propertyDiagnosticIds
Diagnostic Ids to fix. Note that GetDocumentDiagnosticsAsync(Document), GetProjectDiagnosticsAsync(Project) and GetAllDiagnosticsAsync(Project) methods return only diagnostics whose IDs are contained in this set of Ids.
Public propertyDocument
Document within which fix all occurrences was triggered. Can be null if the context was created using #ctor(Project, CodeFixProvider, FixAllScope, String, IEnumerableString, FixAllContextDiagnosticProvider, CancellationToken).
Public propertyProject
Project within which fix all occurrences was triggered.
Public propertyScope
FixAllScope to fix all occurrences.
Public propertySolution
Solution to fix all occurrences.
Top
Methods
  NameDescription
Public methodGetAllDiagnosticsAsync
Public methodGetDocumentDiagnosticsAsync
Public methodGetProjectDiagnosticsAsync
Public methodWithCancellationToken
Gets a new FixAllContext with the given cancellationToken.
Top
See Also