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

适用于