共用方式為


Workspace.CheckProjectHasAnalyzerReference 方法

定義

如果專案沒有特定的分析器參考,則會擲回例外狀況。

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

參數

projectId
ProjectId
analyzerReference
AnalyzerReference

適用於