PackUriHelper.Create Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a new pack URI.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)


Creates a new pack URI that points to a package.

System_CAPS_pubmethodSystem_CAPS_staticCreate(Uri, Uri)

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

System_CAPS_pubmethodSystem_CAPS_staticCreate(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.

Return to top