共用方式為


Workspace.CheckProjectDoesNotHaveMetadataReference 方法

定義

如果專案已經有特定的中繼資料參考,則會擲回例外狀況。

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

參數

projectId
ProjectId
metadataReference
MetadataReference

適用於