Redigeeri

Jagamisviis:


PackUriHelper.GetRelationshipPartUri(Uri) Method

Definition

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

Uri

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

Pack URIs in WPF

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.

Applies to