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

适用于