RelationshipErrorHandler Class

Definition

A class that holds information about invalid relationships in PackagePart instances.

C#
public abstract class RelationshipErrorHandler
Inheritance
RelationshipErrorHandler

Constructors

Methods

CreateRewriterFactory(RelationshipErrorHandler+Rewriter)

Create a RelationshipErrorHandler that simply rewrites the invalid target Uri.

OnPackageLoaded()

Callback for after a package has been completely loaded and all rewritting has occurred.

Rewrite(Uri, String, String)

Rewrites an invalid URI with a valid one in order to correctly open a package.

Applies to

Product Versions
DocumentFormat.OpenXml 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0