Creates a part-level relationship between this IPackagePart to a specified target IPackagePart or external resource.
Parameters
- targetUri
- The URI of the target part.
- targetMode
- One of the enumeration values. For example, RelationshipTargetMode.Internal if the target part is inside the IPackage; or RelationshipTargetMode.External if the target is a resource outside the IPackage.
- relationshipType
- The role of the relationship.
- id
- A unique ID for the relationship.
Return Value
The part-level relationship between this IPackagePart to the target IPackagePart or external resource.
Target Platforms: Android 4.4+, iOS 8+
Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+