Compartilhar via


PublishingWeb.AddPublishingPage método (String, SPFile, Guid, PageConversionPriority, SPFolder)

NOTA: Esta API agora está obsoleta.

Cria um novo objeto de PublishingPage a PublishingWeb.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)

Sintaxe

'Declaração
<ObsoleteAttribute("This member is obsolete - use the specialized Office services instead for conversions",  _
    False)> _
Public Function AddPublishingPage ( _
    newPageName As String, _
    fileToConvert As SPFile, _
    transformerId As Guid, _
    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 priority As PageConversionPriority
Dim folder As SPFolder
Dim returnValue As PublishingPage

returnValue = instance.AddPublishingPage(newPageName, _
    fileToConvert, transformerId, priority, _
    folder)
[ObsoleteAttribute("This member is obsolete - use the specialized Office services instead for conversions", 
    false)]
public PublishingPage AddPublishingPage(
    string newPageName,
    SPFile fileToConvert,
    Guid transformerId,
    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.

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