共用方式為


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

適用於