Share via


Solution4.AddFromTemplateEx Method

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

Namespace:  EnvDTE100
Assembly:  EnvDTE100 (in EnvDTE100.dll)

Syntax

'Declaration
Function AddFromTemplateEx ( _
    FileName As String, _
    Destination As String, _
    ProjectName As String, _
    SolutionName As String, _
    Exclusive As Boolean, _
    Options As UInteger _
) As Project
Project AddFromTemplateEx(
    string FileName,
    string Destination,
    string ProjectName,
    string SolutionName,
    bool Exclusive,
    uint Options
)
Project^ AddFromTemplateEx(
    [InAttribute] String^ FileName, 
    [InAttribute] String^ Destination, 
    [InAttribute] String^ ProjectName, 
    [InAttribute] String^ SolutionName, 
    [InAttribute] bool Exclusive, 
    [InAttribute] unsigned int Options
)
abstract AddFromTemplateEx : 
        FileName:string * 
        Destination:string * 
        ProjectName:string * 
        SolutionName:string * 
        Exclusive:bool * 
        Options:uint32 -> Project
function AddFromTemplateEx(
    FileName : String, 
    Destination : String, 
    ProjectName : String, 
    SolutionName : String, 
    Exclusive : boolean, 
    Options : uint
) : Project

Parameters

  • FileName
    Type: String

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

  • Destination
    Type: String

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

  • ProjectName
    Type: 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
    Type: 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
    Type: 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.

Return Value

Type: EnvDTE.Project
Project .

.NET Framework Security

See Also

Reference

Solution4 Interface

EnvDTE100 Namespace