다음을 통해 공유


DocumentToPublishingPageConversionException Class

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> _
<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 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