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

适用于