RefactorAllScope Enum
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.
Indicates scope for "Refactor all occurrences" code fixes provided by each RefactorAllProvider.
public enum RefactorAllScope
type RefactorAllScope =
Public Enum RefactorAllScope
- Inheritance
-
RefactorAllScope
Fields
| Name | Value | Description |
|---|---|---|
| Document | 0 | Scope to refactor all occurrences of diagnostic(s) in the entire document. |
| Project | 1 | Scope to refactor all occurrences of diagnostic(s) in the entire project. |
| Solution | 2 | Scope to refactor all occurrences of diagnostic(s) in the entire solution. |
| Custom | 3 | Custom scope to refactor all occurrences of diagnostic(s). This scope can be used by custom RefactorAllProviders and custom code refactoring engines. |
| ContainingMember | 4 | Scope to refactor all occurrences of diagnostic(s) in the containing member relative to the trigger span for the original code refactoring. |
| ContainingType | 5 | Scope to refactor all occurrences of diagnostic(s) in the containing type relative to the trigger span for the original code refactoring. |