共用方式為


Workspace.CheckProjectHasMetadataReference 方法

定義

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

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

參數

projectId
ProjectId
metadataReference
MetadataReference

適用於