DocumentToPublishingPageConversionException class

NOTE: This API is now obsolete.

Represents the exception that 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> _
<ObsoleteAttribute("This class is obsolete - use the specialized Office services instead for conversions",  _
    False)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class DocumentToPublishingPageConversionException _
    Inherits Exception
'Usage
Dim instance As DocumentToPublishingPageConversionException
[SerializableAttribute]
[ObsoleteAttribute("This class is obsolete - use the specialized Office services instead for conversions", 
    false)]
[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 the converter sometimes issues an error message during the conversion about encountering fidelity issues, such as not being able to persist embedded images in a document. This exception carries that error message as does the page being created. If the TransformedPage property is 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.

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