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

NOTE: This API is now obsolete.

Creates a new PublishingPage object in the PublishingWeb.

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

[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
)

Parameters

newPageName
Type: System.String

The name for the new PublishingPage object.

fileToConvert
Type: Microsoft.SharePoint.SPFile

The file to convert to get the page content.

transformerId
Type: System.Guid

The document transformer ID to use for the conversion.

priority
Type: Microsoft.SharePoint.Publishing.PageConversionPriority

Priority level for the conversion.

Show: