PublishingWeb.AddPublishingPage método (String, PageLayout, SPFolder)
Cria um novo objeto de PublishingPage a PublishingWeb.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)
Sintaxe
'Declaração
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.StringO nome do novo objeto de PublishingPage .
layout
Tipo: Microsoft.SharePoint.Publishing.PageLayoutO modelo de layout (SPFile) usado para processar o novo objeto de PublishingPage .
folder
Tipo: Microsoft.SharePoint.SPFolderO objeto de pasta (SPFolder) de layout que é usado para armazenar o novo objeto de PublishingPage .
Valor retornado
Tipo: Microsoft.SharePoint.Publishing.PublishingPage
Retorna PublishingPage.