Compartilhar via


PublishingWeb.AddPublishingPage método (String, SPFile, Guid, String, PageConversionPriority, 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 ( _
    newPageName As String, _
    fileToConvert As SPFile, _
    transformerId As Guid, _
    configXml As String, _
    priority As PageConversionPriority, _
    folder As SPFolder _
) As PublishingPage
'Uso
Dim instance As PublishingWeb
Dim newPageName As String
Dim fileToConvert As SPFile
Dim transformerId As Guid
Dim configXml As String
Dim priority As PageConversionPriority
Dim folder As SPFolder
Dim returnValue As PublishingPage

returnValue = instance.AddPublishingPage(newPageName, _
    fileToConvert, transformerId, configXml, _
    priority, folder)
public PublishingPage AddPublishingPage(
    string newPageName,
    SPFile fileToConvert,
    Guid transformerId,
    string configXml,
    PageConversionPriority priority,
    SPFolder folder
)

Parâmetros

  • newPageName
    Tipo: System.String

    O nome para o novo objeto de PublishingPage .

  • transformerId
    Tipo: System.Guid

    A identificação de transformador de documento a ser usado para a conversão do documento.

  • configXml
    Tipo: System.String

    As configurações a serem usadas para a conversão.

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