Solution4.AddFromTemplateEx 方法

将现有项目文件及其包含的任何项或子目录复制到指定位置,并将其添加到解决方案。

命名空间:  EnvDTE100
程序集:  EnvDTE100(在 EnvDTE100.dll 中)

语法

声明
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

参数

  • FileName
    类型:System.String
    必选。模板项目文件的完整路径和带有扩展名的文件名。
  • Destination
    类型:System.String
    必选。FileName 的内容所要复制到的目录的完整路径。
  • ProjectName
    类型:System.String
    必选。目标目录中的项目文件的名称。它应包含扩展名。显示的名称派生于 ProjectName。
  • SolutionName
    类型:System.String
    可选。指示项目是加载到当前解决方案中还是加载到它自己的解决方案中;如果当前解决方案已关闭,并且项目添加到新的解决方案中,则为 true;如果项目添加到已打开的现有解决方案中,则为 false。
  • Exclusive
    类型:System.Boolean
    必选。模板项目文件的完整路径和带有扩展名的文件名。

返回值

类型:EnvDTE.Project
Project.

.NET Framework 安全性

请参见

参考

Solution4 接口

EnvDTE100 命名空间