Click or drag to resize

WorkspaceApplyMetadataReferenceRemoved Method



This method is called during TryApplyChanges(Solution) to remove a metadata reference from a project. Override this method to implement the capability of removing metadata references.

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 virtual void ApplyMetadataReferenceRemoved(
	ProjectId projectId,
	MetadataReference metadataReference
)

Parameters

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