Version

CreateRelationship Method (PackagePart)

Creates a part-level relationship between this PackagePart to a specified target PackagePart or external resource.
Syntax
public IPackageRelationship CreateRelationship( 
   Uri targetUri,
   RelationshipTargetMode targetMode,
   string relationshipType,
   string id
)

Parameters

targetUri
targetMode
relationshipType
id
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also