FixAllContext.GetDocumentDiagnosticsAsync(Document) 方法

定義

取得所 DiagnosticIds 篩選之指定檔中的所有診斷。

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

參數

document
Document

傳回

適用於