Share via


PublishingWeb.AddPublishingPage method (String, SPFile, Guid, String, PageConversionPriority)

Creates a new PublishingPage object in the PublishingWeb.

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

Syntax

'Declaration
Public Function AddPublishingPage ( _
    newPageName As String, _
    fileToConvert As SPFile, _
    transformerId As Guid, _
    configXml As String, _
    priority As PageConversionPriority _
) As PublishingPage
'Usage
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 returnValue As PublishingPage

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

Parameters

  • newPageName
    Type: System.String

    The name for the new PublishingPage object.

  • transformerId
    Type: System.Guid

    The document transformer ID to use for the document conversion.

  • configXml
    Type: System.String

    The settings to use for the conversion.

Return value

Type: Microsoft.SharePoint.Publishing.PublishingPage
Returns PublishingPage.

See also

Reference

PublishingWeb class

PublishingWeb members

AddPublishingPage overload

Microsoft.SharePoint.Publishing namespace