共用方式為


RefactorAllProvider Class

Definition

Implement this abstract type to provide refactor all occurrences support for code refactorings.

public abstract class RefactorAllProvider
type RefactorAllProvider = class
Public MustInherit Class RefactorAllProvider
Inheritance
RefactorAllProvider

Remarks

TODO: Make public, tracked with https://github.com/dotnet/roslyn/issues/60703

Constructors

Name Description
RefactorAllProvider()

Methods

Name Description
Create(Func<RefactorAllContext,Document,Optional<ImmutableArray<TextSpan>>,Task<Document>>, ImmutableArray<RefactorAllScope>)

Create a RefactorAllProvider that refactors documents independently. This can be used in the case where refactoring(s) registered by this provider only affect a single Document.

Create(Func<RefactorAllContext,Document,Optional<ImmutableArray<TextSpan>>,Task<Document>>)

Create a RefactorAllProvider that refactors documents independently. This can be used in the case where refactoring(s) registered by this provider only affect a single Document.

GetRefactoringAsync(RefactorAllContext)

Gets refactor all occurrences for the given refactorAllContext.

GetSupportedRefactorAllScopes()

Applies to