Compartilhar via


Solution4.AddFromTemplateEx Method

Definition

Copies an existing project file, and any items or subdirectories it contains, to the specified location and adds it to the solution.

EnvDTE::Project AddFromTemplateEx(std::wstring const & FileName, std::wstring const & Destination, std::wstring const & ProjectName, std::wstring const & SolutionName, bool Exclusive = true, unsigned int Options = 0);
[System.Runtime.InteropServices.DispId(300)]
public EnvDTE.Project AddFromTemplateEx (string FileName, string Destination, string ProjectName, string SolutionName, bool Exclusive = true, uint Options = 0);
[<System.Runtime.InteropServices.DispId(300)>]
abstract member AddFromTemplateEx : string * string * string * string * bool * uint32 -> EnvDTE.Project
Public Function AddFromTemplateEx (FileName As String, Destination As String, ProjectName As String, SolutionName As String, Optional Exclusive As Boolean = true, Optional Options As UInteger = 0) As Project

Parameters

FileName
String

Required. The full path and file name with extension of the template project file.

Destination
String

Required. The full path of the directory in which to copy the contents of FileName.

ProjectName
String

Required. The name of the project file in the destination directory. This should include the extension. The displayed name is derived from ProjectName.

SolutionName
String

Optional. Indicates whether the project loads in the current solution or its own; true if the current solution is closed and the project is added to a new solution, false if the project is added to the existing, open solution.

Exclusive
Boolean

Optional. Indicates whether the project loads in the current solution or its own; true if the current solution is closed and the project is added to a new solution, false if the project is added to the existing, open solution.

Returns

Project.

Attributes

Applies to