PackUriHelper.ComparePartUri(Uri, Uri) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une valeur qui indique si deux URI de partie 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 qui indique la relation entre firstPartUri et secondPartUri.
| Valeur | Signification |
|---|---|
| Inférieur à 0 |
firstPartUri est inférieur à secondPartUri.
|
| 0 |
firstPartUri est équivalent à secondPartUri.
|
| Supérieur à 0 |
firstPartUri est supérieur à secondPartUri.
|
Exceptions
firstPartUri ou secondPartUri n’est pas une syntaxe d’URI de composant valide.
Remarques
Si les deux firstPartUri et secondPartUri sont null, ComparePartUri retourne 0. Lors de la comparaison PackagePart des URI, un URI Null est toujours inférieur à un URI non null. Dans les cas où firstPartUri et secondPartUri sont les deux URI relatifs PackagePart , ComparePartUri effectue la comparaison.