共用方式為


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

適用於