Workspace.OnAnalyzerReferenceAdded(ProjectId, AnalyzerReference) 方法

定义

将分析器引用添加到主机环境中的项目时调用此方法。

protected public:
 void OnAnalyzerReferenceAdded(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
protected internal void OnAnalyzerReferenceAdded (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
member this.OnAnalyzerReferenceAdded : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> unit
Protected Friend Sub OnAnalyzerReferenceAdded (projectId As ProjectId, analyzerReference As AnalyzerReference)

参数

projectId
ProjectId
analyzerReference
AnalyzerReference

适用于