PackUriHelper.GetPackageUri(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 inner URI that points to the entire package of a specified pack URI.
public:
static Uri ^ GetPackageUri(Uri ^ packUri);
public static Uri GetPackageUri (Uri packUri);
static member GetPackageUri : Uri -> Uri
Public Shared Function GetPackageUri (packUri As Uri) As Uri
Parameters
Returns
The URI of the Package from the specified packUri
.
Exceptions
packUri
is null
.
packUri
is not an absolute Uri.
Remarks
The following table illustrates sample cases for GetPackageUri.
packUri |
Returned Package URI |
---|---|
pack://http:,,www.proseware.com,mypackage.xyz/a/mydoc.xaml | http://www.proseware.com/mypackage.xyz |
pack://http:,,www.proseware.com,packages.aspx%3fmypackage/a/bar.xaml | http://www.proseware.com/packages.aspx?mypackage |
pack://http:,,www.proseware.com,mypackage.pkg | http://www.proseware.com/mypackage.pkg |
pack://ftp:,,ftp.proseware.com,packages,mypackage1.abc/a/picture.jpg | ftp://ftp.proseware.com/packages/mypackage1.abc |
pack://file:,,,d:,packages,mypackage2.pkg/a/bar.xaml | file:///d:/packages/mypackage2.pkg |
Applies to
See also
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: