Assembly: WindowsBase (in WindowsBase.dll)
The class has no public constructor; instead, two Create methods are used:
Creates a "package-level" relationship—from a package to a specified part or external resource.
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 elements see Section 1.3 "Relationships" in the Open Packaging Conventions specification available for download at http://go.microsoft.com/fwlink/?LinkID=71255.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.