PackUriHelper.GetRelationshipPartUri(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the URI of the relationship part associated with a specified PackagePart.
public:
static Uri ^ GetRelationshipPartUri(Uri ^ partUri);
public static Uri GetRelationshipPartUri (Uri partUri);
static member GetRelationshipPartUri : Uri -> Uri
Public Shared Function GetRelationshipPartUri (partUri As Uri) As Uri
Parameters
- partUri
- Uri
The Uri of the PackagePart to return the URI for the associated PackageRelationship.
Returns
The URI of the PackageRelationship part associated with the PackagePart identified by partUri
.
Exceptions
partUri
is null
.
partUri
syntax is not valid for a package part URI.
-or-
partUri
is an absolute URI.
-or-
partUri
references a relationship part.
Examples
Open Packaging Conventions Specification
Remarks
partUri
must identify either the Package ("/") or a PackagePart that is not a PackageRelationship part.
For more information about PackageRelationship parts, see Section 9.3 "Relationships" in the Open Packaging Conventions Specification available for download at Specifications and License Downloads.