共用方式為


Workspace.CheckProjectIsInCurrentSolution(ProjectId) 方法

定義

如果專案不是目前方案的一部分,則會擲回例外狀況。

protected:
 void CheckProjectIsInCurrentSolution(Microsoft::CodeAnalysis::ProjectId ^ projectId);
protected void CheckProjectIsInCurrentSolution (Microsoft.CodeAnalysis.ProjectId projectId);
member this.CheckProjectIsInCurrentSolution : Microsoft.CodeAnalysis.ProjectId -> unit
Protected Sub CheckProjectIsInCurrentSolution (projectId As ProjectId)

參數

projectId
ProjectId

適用於