Workspace.ApplyMetadataReferenceRemoved(ProjectId, MetadataReference) 方法

定义

在从项目中删除元数据引用的过程中 TryApplyChanges(Solution) 调用此方法。

重写此方法以实现删除元数据引用的功能。

protected:
 virtual void ApplyMetadataReferenceRemoved(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::MetadataReference ^ metadataReference);
protected virtual void ApplyMetadataReferenceRemoved (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.MetadataReference metadataReference);
abstract member ApplyMetadataReferenceRemoved : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.MetadataReference -> unit
override this.ApplyMetadataReferenceRemoved : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.MetadataReference -> unit
Protected Overridable Sub ApplyMetadataReferenceRemoved (projectId As ProjectId, metadataReference As MetadataReference)

参数

projectId
ProjectId
metadataReference
MetadataReference

适用于