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

Creates a new PublishingPage object in the PublishingWeb.

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

public PublishingPage AddPublishingPage(
	string newPageName,
	SPFile fileToConvert,
	Guid transformerId,
	string configXml,
	PageConversionPriority priority,
	SPFolder folder
)

Parameters

newPageName
Type: System.String

The name for the new PublishingPage object.

fileToConvert
Type: Microsoft.SharePoint.SPFile

The name of the file to convert to get the page content.

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.

priority
Type: Microsoft.SharePoint.Publishing.PageConversionPriority

The priority level of the conversion.

folder
Type: Microsoft.SharePoint.SPFolder

The folder that contains this new PublishingPage object.

Show: