Class PackageRelationship
One entry of the source package's relationship table, recorded verbatim on read.
Two things depend on it. Relationships that reach a PreservedPart cannot be rebuilt from the document tree at all — the model does not represent those parts — so without the table a package carrying custom XML or document properties cannot be reassembled. And for parts the model *does* represent, the recorded id lets a writer reuse the source's relationship ids instead of renumbering them, so a read-then-save with no edits does not churn every r:id in the document.
public sealed class PackageRelationship
- Inheritance
-
PackageRelationship
- Inherited Members
Constructors
- PackageRelationship(string, string, string, string, bool)
Initializes a relationship table entry.
Properties
- Id
Gets the relationship id, for example "rId5".
- IsExternal
Gets a value indicating whether the target is external.
- RelationshipType
Gets the relationship type URI.
- SourcePartUri
Gets the part that owns the relationship, or "/" for the package root.
- TargetUri
Gets the absolute part URI for an internal target, or the raw target for an external one.