Share via


PackUriHelper.GetPackageUri(Uri) Methode

Definition

Gibt den inneren URI zurück, der auf das gesamte Paket eines angegebenen Paket-URIs verweist.

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

Parameter

packUri
Uri

Der Paket-URI, von dem der Package-URI zurückgegeben werden soll.

Gibt zurück

Uri

Der Package-URI vom angegebenen packUri.

Ausnahmen

packUri ist null.

packUri ist kein absoluter Uri.

Hinweise

In der folgenden Tabelle sind Beispielfälle für GetPackageUridargestellt.

packUri Zurückgegebener Paket-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

Gilt für:

Weitere Informationen