共用方式為


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

適用於