共用方式為


Workspace.ApplyProjectAdded(ProjectInfo) 方法

定義

這個方法會在 期間 TryApplyChanges(Solution) 呼叫,以將專案新增至目前的方案。

覆寫此方法以實作新增專案的功能。

protected:
 virtual void ApplyProjectAdded(Microsoft::CodeAnalysis::ProjectInfo ^ project);
protected virtual void ApplyProjectAdded (Microsoft.CodeAnalysis.ProjectInfo project);
abstract member ApplyProjectAdded : Microsoft.CodeAnalysis.ProjectInfo -> unit
override this.ApplyProjectAdded : Microsoft.CodeAnalysis.ProjectInfo -> unit
Protected Overridable Sub ApplyProjectAdded (project As ProjectInfo)

參數

project
ProjectInfo

適用於