Click or drag to resize

WorkspaceOnMetadataReferenceAdded Method



Call this method when a metadata reference is added to a project in the host environment.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis.Workspaces (in Microsoft.CodeAnalysis.Workspaces.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
protected void OnMetadataReferenceAdded(
	ProjectId projectId,
	MetadataReference metadataReference
)

Parameters

projectId
Type: Microsoft.CodeAnalysisProjectId
metadataReference
Type: Microsoft.CodeAnalysisMetadataReference
See Also