共用方式為


FixAllScope Enum

Definition

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

public enum class FixAllScope
public enum FixAllScope
type FixAllScope = 
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