共用方式為


Workspace.OnProjectAdded(ProjectInfo) 方法

定義

呼叫這個方法,以回應在主環境中新增/開啟的專案。

protected public:
 void OnProjectAdded(Microsoft::CodeAnalysis::ProjectInfo ^ projectInfo);
protected internal void OnProjectAdded (Microsoft.CodeAnalysis.ProjectInfo projectInfo);
member this.OnProjectAdded : Microsoft.CodeAnalysis.ProjectInfo -> unit
Protected Friend Sub OnProjectAdded (projectInfo As ProjectInfo)

參數

projectInfo
ProjectInfo

適用於