Partager via


PackUriHelper.ComparePartUri(Uri, Uri) Méthode

Définition

Retourne une valeur qui indique si deux URI de composant de package sont équivalents.

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

Paramètres

firstPartUri
Uri

URI du premier PackagePart.

secondPartUri
Uri

URI du deuxième PackagePart.

Retours

Valeur indiquant la relation entre firstPartUri et secondPartUri.

Value Signification
Inférieure à 0firstPartUri est inférieur à secondPartUri.
0firstPartUri équivaut à secondPartUri.
Supérieure à 0firstPartUri est supérieur à secondPartUri.

Exceptions

firstPartUri ou secondPartUri n’est pas une syntaxe d’URI de composant valide.

Remarques

Si et firstPartUrisecondPartUri sont null, ComparePartUri retourne 0. Lors de la comparaison PackagePart d’URI, un URI Null est toujours inférieur à un URI non null. Pour les cas où firstPartUri et secondPartUri sont tous deux des URI relatifs PackagePart , ComparePartUri effectue la comparaison.

S’applique à

Voir aussi