Delen via


Workspace.CheckProjectDoesNotHaveProjectReference Method

Definition

Throws an exception if a project already has a specific project reference.

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)

Parameters

fromProjectId
ProjectId
projectReference
ProjectReference

Applies to