Workspace.ApplyAnalyzerReferenceRemoved(ProjectId, AnalyzerReference) 方法

定义

此方法在从项目中删除分析器引用期间 TryApplyChanges(Solution) 调用。

重写此方法以实现删除分析器引用的功能。

protected:
 virtual void ApplyAnalyzerReferenceRemoved(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::Diagnostics::AnalyzerReference ^ analyzerReference);
protected virtual void ApplyAnalyzerReferenceRemoved (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference analyzerReference);
abstract member ApplyAnalyzerReferenceRemoved : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> unit
override this.ApplyAnalyzerReferenceRemoved : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference -> unit
Protected Overridable Sub ApplyAnalyzerReferenceRemoved (projectId As ProjectId, analyzerReference As AnalyzerReference)

参数

projectId
ProjectId
analyzerReference
AnalyzerReference

适用于