IVsSolution6.AddNewProjectFromTemplate Yöntem

Tanım

Bir proje şablonu kullanarak çözüme yeni bir proje ekler.

public:
 int AddNewProjectFromTemplate(System::String ^ szTemplatePath, Array ^ rgCustomParams, System::String ^ szTargetFramework, System::String ^ szDestinationFolder, System::String ^ szProjectName, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pParent, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppNewProj);
public int AddNewProjectFromTemplate (string szTemplatePath, Array rgCustomParams, string szTargetFramework, string szDestinationFolder, string szProjectName, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pParent, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppNewProj);
abstract member AddNewProjectFromTemplate : string * Array * string * string * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * IVsHierarchy -> int
Public Function AddNewProjectFromTemplate (szTemplatePath As String, rgCustomParams As Array, szTargetFramework As String, szDestinationFolder As String, szProjectName As String, pParent As IVsHierarchy, ByRef ppNewProj As IVsHierarchy) As Integer

Parametreler

szTemplatePath
String

Şablonun yolu.

rgCustomParams
Array

seçim Şablon altyapısına geçirilecek özel anahtar sözcükler. Dizeler "anahtar sözcüğü = değer" biçiminde olmalıdır.

szTargetFramework
String

seçim Şablon seçimi için hedef çerçeve (varsa).

szDestinationFolder
String

Projenin oluşturulacağı disk konumu.

szProjectName
String

Projenin adı.

pParent
IVsHierarchy

seçim Yeni projenin oluşturulacağı üst proje. Bu çözüm klasörü veya IVsParentProject3 uygulayan herhangi bir proje olabilir.

ppNewProj
IVsHierarchy

Döndürülenler

Int32

Yeni oluşturulan proje. Şablon birden fazla proje oluşturursa, ilk oluşturulan bu budur.

Şunlara uygulanır