(String, PageLayout, SPFolder) del método PublishingWeb.AddPublishingPage
Crea un nuevo objeto PublishingPage en la PublishingWeb.
Espacio de nombres: Microsoft.SharePoint.Publishing
Ensamblado: Microsoft.SharePoint.Publishing (en Microsoft.SharePoint.Publishing.dll)
Sintaxis
'Declaración
Public Function AddPublishingPage ( _
name As String, _
layout As PageLayout, _
folder As SPFolder _
) As PublishingPage
'Uso
Dim instance As PublishingWeb
Dim name As String
Dim layout As PageLayout
Dim folder As SPFolder
Dim returnValue As PublishingPage
returnValue = instance.AddPublishingPage(name, _
layout, folder)
public PublishingPage AddPublishingPage(
string name,
PageLayout layout,
SPFolder folder
)
Parámetros
name
Tipo: System.StringEl nombre del nuevo objeto PublishingPage .
layout
Tipo: Microsoft.SharePoint.Publishing.PageLayoutLa plantilla de diseño (SPFile) se utiliza para representar el nuevo objeto de PublishingPage .
folder
Tipo: Microsoft.SharePoint.SPFolderEl objeto de carpeta (SPFolder) de diseño que se utiliza para almacenar el nuevo objeto de PublishingPage .
Valor devuelto
Tipo: Microsoft.SharePoint.Publishing.PublishingPage
Devuelve PublishingPage.