Share via


PackUriHelper.ComparePartUri(Uri, Uri) Methode

Definition

Gibt einen Wert zurück, der angibt, ob zwei Paketteil-URIs äquivalent sind.

public:
 static int ComparePartUri(Uri ^ firstPartUri, Uri ^ secondPartUri);
public static int ComparePartUri (Uri? firstPartUri, Uri? secondPartUri);
public static int ComparePartUri (Uri firstPartUri, Uri secondPartUri);
static member ComparePartUri : Uri * Uri -> int
Public Shared Function ComparePartUri (firstPartUri As Uri, secondPartUri As Uri) As Integer

Parameter

firstPartUri
Uri

Der URI des ersten PackagePart.

secondPartUri
Uri

Der URI des zweiten PackagePart.

Gibt zurück

Ein Wert, der die Beziehung zwischen firstPartUri und secondPartUri angibt.

Wert Bedeutung
Kleiner als 0firstPartUri ist kleiner als secondPartUri.
0firstPartUri entspricht secondPartUri.
Größer als 0firstPartUri ist größer als secondPartUri.

Ausnahmen

firstPartUri oder secondPartUri ist keine gültige Syntax eines Teil-URIs.

Hinweise

Wenn beide firstPartUri und secondPartUri sind null, ComparePartUri gibt 0 zurück. Beim Vergleich von PackagePart URIs ist ein NULL-URI immer kleiner als ein NICHT-NULL-URI. Für Fälle, in denen firstPartUri und secondPartUri beide relative PackagePart URIs sind, ComparePartUri führt den Vergleich aus.

Gilt für:

Weitere Informationen