Afficher en anglais Édition

Partage via


PackUriHelper Class

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.

Provides utility methods to compose and parse pack URI objects.

C#
public static class PackUriHelper
Inheritance
PackUriHelper

Fields

UriSchemePack

Defines the pack URI scheme name "pack".

Methods

ComparePackUri(Uri, Uri)

Returns a value that indicates whether two pack URIs are equivalent.

ComparePartUri(Uri, Uri)

Returns a value that indicates whether two package part URIs are equivalent.

Create(Uri, Uri, String)

Creates a pack URI given a Package URI, the URI of a part in the package, and a "#" fragment to append.

Create(Uri, Uri)

Creates a pack URI given a Package URI and the URI of a part in the package.

Create(Uri)

Creates a new pack URI that points to a package.

CreatePartUri(Uri)

Creates a formatted PackagePart URI.

GetNormalizedPartUri(Uri)

Returns the normalized form of a specified PackagePart URI.

GetPackageUri(Uri)

Returns the inner URI that points to the entire package of a specified pack URI.

GetPartUri(Uri)

Returns the URI of a PackagePart within a specified pack URI.

GetRelationshipPartUri(Uri)

Returns the URI of the relationship part associated with a specified PackagePart.

GetRelativeUri(Uri, Uri)

Returns the relative URI between two specified PackagePart URIs.

GetSourcePartUriFromRelationshipPartUri(Uri)

Returns the SourceUri from the PackageRelationship with a specified URI.

IsRelationshipPartUri(Uri)

Returns a value that indicates whether a specified URI is the URI of a PackageRelationship part.

ResolvePartUri(Uri, Uri)

Returns a part URI given a source part URI and a URI with a relative path to a target part.

Applies to

Produit Versions
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10