共用方式為


Workspace.OnMetadataReferenceRemoved(ProjectId, MetadataReference) 方法

定義

從主環境中的專案移除中繼資料參考時,請呼叫此方法。

protected public:
 void OnMetadataReferenceRemoved(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::MetadataReference ^ metadataReference);
protected internal void OnMetadataReferenceRemoved (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.MetadataReference metadataReference);
member this.OnMetadataReferenceRemoved : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.MetadataReference -> unit
Protected Friend Sub OnMetadataReferenceRemoved (projectId As ProjectId, metadataReference As MetadataReference)

參數

projectId
ProjectId
metadataReference
MetadataReference

適用於