次の方法で共有


OASolutionFolder.AddFromTemplate メソッド

指定されたテンプレートを使用してサブプロジェクトを指定された場所に追加します。

名前空間 :  Microsoft.VisualStudio.Data.Schema.Project.Automation
アセンブリ :  Microsoft.VisualStudio.Data.Schema.Project (Microsoft.VisualStudio.Data.Schema.Project.dll 内)

構文

'宣言
Public Overridable Function AddFromTemplate ( _
    fileName As String, _
    destination As String, _
    projectName As String _
) As Project
'使用
Dim instance As OASolutionFolder
Dim fileName As String
Dim destination As String
Dim projectName As String
Dim returnValue As Project

returnValue = instance.AddFromTemplate(fileName, _
    destination, projectName)
public virtual Project AddFromTemplate(
    string fileName,
    string destination,
    string projectName
)
public:
virtual Project^ AddFromTemplate(
    String^ fileName, 
    String^ destination, 
    String^ projectName
)
public function AddFromTemplate(
    fileName : String, 
    destination : String, 
    projectName : String
) : Project

パラメータ

  • fileName
    型 : System.String
    テンプレート ファイルの名前。

戻り値

型 : EnvDTE.Project

実装

SolutionFolder.AddFromTemplate(String, String, String)

参照

参照

OASolutionFolder クラス

OASolutionFolder メンバ

Microsoft.VisualStudio.Data.Schema.Project.Automation 名前空間