This documentation is archived and is not being maintained.

PackUriHelper.Create Method

Creates a new pack URI.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method Static member Create(Uri) Creates a new pack URI that points to a package.
Public method Static member Create(Uri, Uri) Creates a pack URI given a Package URI and the URI of a part in the package.
Public method Static member 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.

The following table illustrates sample cases for the Create method.




 Returned pack URI 
































Composing a pack URI is a multi-step process. For example, one step in forming a pack URI is to replace the forward slash (/) characters of the packageUri with commas (,).

For more information on string conversion and how pack URIs are formed, see Appendix A.4 "String Conversion Examples" and Appendix B.3 "Composing a Pack URI" in the Open Packaging Conventions specification available for download at Specifications and License Downloads.