Export (0) Print
Expand All

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.

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

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

[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

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.

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