CodeFixProvider.GetFixAllProvider Method
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.
Gets an optional FixAllProvider that can fix all/multiple occurrences of diagnostics fixed by this code fix provider. Return null if the provider doesn't support fix all/multiple occurrences. Otherwise, you can return any of the well known fix all providers from WellKnownFixAllProviders or implement your own fix all provider.
public:
virtual Microsoft::CodeAnalysis::CodeFixes::FixAllProvider ^ GetFixAllProvider();
public virtual Microsoft.CodeAnalysis.CodeFixes.FixAllProvider GetFixAllProvider ();
public virtual Microsoft.CodeAnalysis.CodeFixes.FixAllProvider? GetFixAllProvider ();
abstract member GetFixAllProvider : unit -> Microsoft.CodeAnalysis.CodeFixes.FixAllProvider
override this.GetFixAllProvider : unit -> Microsoft.CodeAnalysis.CodeFixes.FixAllProvider
Public Overridable Function GetFixAllProvider () As FixAllProvider
Returns
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈