FixAllContext.GetDocumentDiagnosticsAsync(Document) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得所 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