Compartilhar via


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.String

    O nome do novo objeto de PublishingPage .

Valor retornado

Tipo: Microsoft.SharePoint.Publishing.PublishingPage
Retorna PublishingPage.

Ver também

Referência

PublishingWeb classe

PublishingWeb membros

AddPublishingPage em sobrecarga

Microsoft.SharePoint.Publishing namespace