PackUriHelper.ComparePartUri(Uri, Uri) Methode

Definition

Gibt einen Wert zurück, der angibt, ob zwei Paketteil-URIs gleichwertig 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.

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

Ausnahmen

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

Hinweise

Wenn beides firstPartUri ist, secondPartUrinullComparePartUriwird "0" zurückgegeben. Beim Vergleichen von PackagePart URIs ist ein NULL-URI immer kleiner als ein Nicht-Null-URI. In Fällen, in denen firstPartUri beide secondPartUri relative PackagePart URIs sind, ComparePartUri wird der Vergleich ausgeführt.

Gilt für:

Weitere Informationen