Share via


DocumentToPublishingPageConversionException Class

The DocumentToPublishingPageConversionException is thrown when documents are being converted to publishing pages and errors occur during the conversion process.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SharePoint.Publishing.DocumentToPublishingPageConversionException

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

Syntax

'Declaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class DocumentToPublishingPageConversionException _
    Inherits Exception
'Usage
Dim instance As DocumentToPublishingPageConversionException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class DocumentToPublishingPageConversionException : Exception

Remarks

You can consume this exception, but do not throw it. This scenario has its own special exception because converter sometimes issues a warning during the conversion about encountering fidelity issues such as not being able to persist embedded images in a document, and this exception carries that warning as does the page being created with that caveat. If the TransformedPage propertyis not set to a null reference (Nothing in Visual Basic), the conversion was successful but it also encountered issues that are severe enough for the converter to flag. The resulting page can be used with that caveat.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DocumentToPublishingPageConversionException Members

Microsoft.SharePoint.Publishing Namespace

Add

Add

UpdateContentFromSourceDocument