Compartir a través de


VSWebSite.AddFromTemplate (Método)

Crea un nuevo ProjectItem en el proyecto de sitio web.

Espacio de nombres:  VsWebSite
Ensamblado:  VsWebSite.Interop (en VsWebSite.Interop.dll)

Sintaxis

'Declaración
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
ProjectItem AddFromTemplate(
    string bstrRelFolderUrl,
    string bstrWizardName,
    string bstrLanguage,
    string bstrItemName,
    bool bUseCodeSeparation,
    string bstrMasterPage,
    string bstrDocType
)
ProjectItem^ AddFromTemplate(
    [InAttribute] String^ bstrRelFolderUrl, 
    [InAttribute] String^ bstrWizardName, 
    [InAttribute] String^ bstrLanguage, 
    [InAttribute] String^ bstrItemName, 
    [InAttribute] bool bUseCodeSeparation, 
    [InAttribute] String^ bstrMasterPage, 
    [InAttribute] String^ bstrDocType
)
abstract AddFromTemplate : 
        bstrRelFolderUrl:string * 
        bstrWizardName:string * 
        bstrLanguage:string * 
        bstrItemName:string * 
        bUseCodeSeparation:bool * 
        bstrMasterPage:string * 
        bstrDocType:string -> ProjectItem
function AddFromTemplate(
    bstrRelFolderUrl : String, 
    bstrWizardName : String, 
    bstrLanguage : String, 
    bstrItemName : String, 
    bUseCodeSeparation : boolean, 
    bstrMasterPage : String, 
    bstrDocType : String
) : ProjectItem

Parámetros

  • bstrRelFolderUrl
    Tipo: String

    Dirección URL relativa para la carpeta en la que se crea el objeto ProjectItem. Si este parámetro es nullreferencia null (Nothing en Visual Basic) o una cadena vacía, el elemento se agrega a la raíz del proyecto.

  • bstrWizardName
    Tipo: String

    Nombre de una plantilla utilizada para crear el objeto ProjectItem.

  • bstrLanguage
    Tipo: String

    Lenguaje del código para el objeto ProjectItem; por ejemplo, "C#" o "VB".

  • bstrItemName
    Tipo: String

    Nombre del objeto ProjectItem tal como desea que se escriba en el proyecto.

  • bUseCodeSeparation
    Tipo: Boolean

    Valor booleano que indica si utilizar el modelo de código subyacente. Se utiliza este parámetro solo cuando el proyecto admite los archivos de código subyacente; de lo contrario se omite.

  • bstrMasterPage
    Tipo: String

    Ruta de acceso relativa y nombre de la página maestra para proyectos que admiten las páginas maestras y, si corresponde, la plantilla; de lo contrario se omite este parámetro.

  • bstrDocType
    Tipo: String

    No usado.

Valor devuelto

Tipo: ProjectItem
Un objeto ProjectItem.

Seguridad de .NET Framework

Vea también

Referencia

VSWebSite Interfaz

VsWebSite (Espacio de nombres)

EnvDTE

EnvDTE80

DTE2

Otros recursos

Establecer referencias a los ensamblados de automatización y al objeto DTE2

Finding and Sharing Project and Item Templates