共用方式為


Workspace.ApplyAnalyzerConfigDocumentAdded(DocumentInfo, SourceText) 方法

定義

這個方法會在 期間 TryApplyChanges(Solution) 呼叫,以將新的分析器組態檔新增至專案。

覆寫此方法以實作新增分析器組態檔的功能。

protected virtual void ApplyAnalyzerConfigDocumentAdded (Microsoft.CodeAnalysis.DocumentInfo info, Microsoft.CodeAnalysis.Text.SourceText text);
abstract member ApplyAnalyzerConfigDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
override this.ApplyAnalyzerConfigDocumentAdded : Microsoft.CodeAnalysis.DocumentInfo * Microsoft.CodeAnalysis.Text.SourceText -> unit
Protected Overridable Sub ApplyAnalyzerConfigDocumentAdded (info As DocumentInfo, text As SourceText)

參數

text
SourceText

適用於