Partager via


Workspace.OnAnalyzerReferenceAdded(ProjectId, AnalyzerReference) Méthode

Définition

Appelez cette méthode lorsqu’une référence d’analyseur est ajoutée à un projet dans l’environnement hôte.

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)

Paramètres

projectId
ProjectId
analyzerReference
AnalyzerReference

S’applique à