FixAllContext.GetAllDiagnosticsAsync(Project) 方法

定义

获取给定项目中筛选依据 DiagnosticIds的所有诊断。 这包括给定项目中的所有文档的文档级诊断和项目级诊断,即给定项目中没有源位置的诊断。

public:
 System::Threading::Tasks::Task<System::Collections::Immutable::ImmutableArray<Microsoft::CodeAnalysis::Diagnostic ^>> ^ GetAllDiagnosticsAsync(Microsoft::CodeAnalysis::Project ^ project);
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>> GetAllDiagnosticsAsync (Microsoft.CodeAnalysis.Project project);
member this.GetAllDiagnosticsAsync : Microsoft.CodeAnalysis.Project -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>>
Public Function GetAllDiagnosticsAsync (project As Project) As Task(Of ImmutableArray(Of Diagnostic))

参数

project
Project

返回

适用于