(String, PageLayout) 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 _
) As PublishingPage
'Uso
Dim instance As PublishingWeb
Dim name As String
Dim layout As PageLayout
Dim returnValue As PublishingPage
returnValue = instance.AddPublishingPage(name, _
layout)
public PublishingPage AddPublishingPage(
string name,
PageLayout layout
)
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 .
Valor devuelto
Tipo: Microsoft.SharePoint.Publishing.PublishingPage
Devuelve PublishingPage.