VSWebSite.AddFromTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ProjectItem in the Web site project.
public:
EnvDTE::ProjectItem ^ AddFromTemplate(System::String ^ bstrRelFolderUrl, System::String ^ bstrWizardName, System::String ^ bstrLanguage, System::String ^ bstrItemName, bool bUseCodeSeparation, System::String ^ bstrMasterPage, System::String ^ bstrDocType);
[System.Runtime.InteropServices.DispId(13)]
public EnvDTE.ProjectItem AddFromTemplate (string bstrRelFolderUrl, string bstrWizardName, string bstrLanguage, string bstrItemName, bool bUseCodeSeparation, string bstrMasterPage, string bstrDocType);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member AddFromTemplate : string * string * string * string * bool * string * string -> EnvDTE.ProjectItem
Public Function AddFromTemplate (bstrRelFolderUrl As String, bstrWizardName As String, bstrLanguage As String, bstrItemName As String, bUseCodeSeparation As Boolean, bstrMasterPage As String, bstrDocType As String) As ProjectItem
Parameters
- bstrRelFolderUrl
- String
A relative URL for the folder in which to create the ProjectItem object. If this parameter is null or an empty string, the item is added to the root of the project.
- bstrWizardName
- String
The name of a template to use in creating the ProjectItem object.
- bstrLanguage
- String
The code language for the ProjectItem object; for example, "C#" or "VB."
- bstrItemName
- String
The name of the ProjectItem object as you want it to be within the project.
- bUseCodeSeparation
- Boolean
A Boolean value indicating whether to use the code-behind model. This parameter is used only when the project supports code-behind files; otherwise it is ignored.
- bstrMasterPage
- String
The relative path and name of the master page for projects that support master pages, and if applicable, the template; otherwise this parameter is ignored.
- bstrDocType
- String
Not used.
Returns
A ProjectItem object.
- Attributes