PublishingPage.UpdateContentFromSourceDocument Method
Updates a PublishingPageobject created by converting a document and reruns the conversion.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Sub UpdateContentFromSourceDocument ( _
priority As PageConversionPriority _
)
'Usage
Dim instance As PublishingPage
Dim priority As PageConversionPriority
instance.UpdateContentFromSourceDocument(priority)
public void UpdateContentFromSourceDocument(
PageConversionPriority priority
)
Parameters
priority
Type: Microsoft.SharePoint.Publishing.PageConversionPriorityThe PageConversionPriority enumeration for the conversion.
Exceptions
Exception | Condition |
---|---|
ArgumentException | A document was not converted to create this page. |
DocumentToPublishingPageConversionException | The update operation failed or succeeded with warnings. |
[Microsoft.SharePoint.SPException] | The update operation failed. |
Remarks
Rerunning the conversion updates the contents of this PublishingPage with the contents of the document.