Читати англійською

Поділитися через


FixAllScope Enum

Definition

Indicates scope for "Fix all occurrences" code fixes provided by each FixAllProvider.

C#
public enum FixAllScope
Inheritance
FixAllScope

Fields

Name Value Description
Document 0

Scope to fix all occurences of diagnostic(s) in the entire document.

Project 1

Scope to fix all occurences of diagnostic(s) in the entire project.

Solution 2

Scope to fix all occurences of diagnostic(s) in the entire solution.

Custom 3

Custom scope to fix all occurences of diagnostic(s). This scope can be used by custom FixAllProviders and custom code fix engines.

ContainingMember 4

Scope to fix all occurrences of diagnostic(s) in the containing member relative to the trigger span for the original code fix.

ContainingType 5

Scope to fix all occurrences of diagnostic(s) in the containing type relative to the trigger span for the original code fix.

Applies to

Продукт Версії
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0