Workspace.CheckProjectDoesNotHaveProjectReference 方法

定义

如果项目已有特定的项目引用,则引发异常。

protected:
 void CheckProjectDoesNotHaveProjectReference(Microsoft::CodeAnalysis::ProjectId ^ fromProjectId, Microsoft::CodeAnalysis::ProjectReference ^ projectReference);
protected void CheckProjectDoesNotHaveProjectReference (Microsoft.CodeAnalysis.ProjectId fromProjectId, Microsoft.CodeAnalysis.ProjectReference projectReference);
member this.CheckProjectDoesNotHaveProjectReference : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.ProjectReference -> unit
Protected Sub CheckProjectDoesNotHaveProjectReference (fromProjectId As ProjectId, projectReference As ProjectReference)

参数

fromProjectId
ProjectId
projectReference
ProjectReference

适用于