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: System.StringRequired. The full path and file name with extension of the template project file.
Destination
Type: System.StringRequired. The full path of the directory in which to copy the contents of FileName.
ProjectName
Type: System.StringRequired. The name of the project file in the destination directory. This should include the extension. The displayed name is derived from ProjectName.
SolutionName
Type: System.StringOptional. 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: System.BooleanOptional. 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.
Options
Type: System.UInt32
Return Value
Type: EnvDTE.Project
Project .
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.