public ref class PackageRelationship
public class PackageRelationship
type PackageRelationship = class
Public Class PackageRelationship
The PackageRelationship class has no public constructor; instead, two Create methods are used:
|Package.CreateRelationship||Creates a "package-level" relationship-from a package to a specified part or external resource.|
|PackagePart.CreateRelationship||Creates a "part-level" relationship-from one part to another part or external resource.|
Creating or deleting a relationship does not affect the source or target objects in any way.
If a source object is deleted, all relationships owned by the object are also deleted.
Relationships enable navigation both in a document and between documents. Relationships also support document object model services, such as linking a PrintTicket to specific document elements when printing.
For more information about PackageRelationship elements see Section 1.3 "Relationships" in the Open Packaging Conventions specification available for download at https://go.microsoft.com/fwlink/?LinkID=71255.
|Id Id Id Id||
Gets a string that identifies the relationship.
|Package Package Package Package||
Gets the Package that contains this relationship.
|RelationshipType RelationshipType RelationshipType RelationshipType||
Gets the qualified type name of the relationship.
|SourceUri SourceUri SourceUri SourceUri||
Gets the URI of the package or part that owns the relationship.
|TargetMode TargetMode TargetMode TargetMode|
|TargetUri TargetUri TargetUri TargetUri||
Gets the URI of the target resource of the relationship.
|Equals(Object) Equals(Object) Equals(Object) Equals(Object)||
Determines whether the specified object is equal to the current object.(Inherited from Object)
|GetHashCode() GetHashCode() GetHashCode() GetHashCode()||
Serves as the default hash function.(Inherited from Object)
|GetType() GetType() GetType() GetType()||
Gets the Type of the current instance.(Inherited from Object)
|MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()||
Creates a shallow copy of the current Object.(Inherited from Object)
|ToString() ToString() ToString() ToString()||
Returns a string that represents the current object.(Inherited from Object)