PublishingWeb.AddPublishingPage Method (String, SPFile, Guid, PageConversionPriority, SPFolder)
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, _
priority As PageConversionPriority, _
folder As SPFolder _
) As PublishingPage
'Usage
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)
public PublishingPage AddPublishingPage(
string newPageName,
SPFile fileToConvert,
Guid transformerId,
PageConversionPriority priority,
SPFolder folder
)
Parameters
newPageName
Type: System.StringThe name for the new PublishingPage object.
fileToConvert
Type: Microsoft.SharePoint.SPFileThe name of the file to convert to get the page content.
transformerId
Type: System.GuidThe document transformer ID to use for the document conversion.
priority
Type: Microsoft.SharePoint.Publishing.PageConversionPriorityThe priority level of the conversion.
folder
Type: Microsoft.SharePoint.SPFolderThe folder that contains this new PublishingPage object.
Return Value
Type: Microsoft.SharePoint.Publishing.PublishingPage
Returns PublishingPage.