共用方式為


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 命名空間