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

适用于