PackUriHelper.ComparePackUri(Uri, Uri) Méthode
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 à en-tête pack sont équivalents.
public:
static int ComparePackUri(Uri ^ firstPackUri, Uri ^ secondPackUri);
public static int ComparePackUri (Uri firstPackUri, Uri secondPackUri);
public static int ComparePackUri (Uri? firstPackUri, Uri? secondPackUri);
static member ComparePackUri : Uri * Uri -> int
Public Shared Function ComparePackUri (firstPackUri As Uri, secondPackUri As Uri) As Integer
- firstPackUri
- Uri
Premier URI à en-tête pack.
- secondPackUri
- Uri
Deuxième URI à en-tête pack.
Entier signé indiquant la relation entre firstPackUri
et secondPackUri
.
Value | Signification |
---|---|
Inférieure à 0 |
firstPackUri est inférieur à secondPackUri .
|
0 |
firstPackUri équivaut à secondPackUri .
|
Supérieure à 0 |
firstPackUri est supérieur à secondPackUri .
|
firstPackUri
ou secondPackUri
n’est pas un URI absolu.
- ou -
firstPackUri
ou secondPackUri
ne commence pas par un schéma “pack://”.
Si et firstPackUri
secondPackUri
sont null
, ComparePackUri retourne 0. Lors de la comparaison des URI de pack, un URI Null est toujours inférieur à un URI non null. Pour les cas où firstPackUri
et secondPackUri
sont tous deux des URI de pack absolus, ComparePackUri effectue la comparaison.
Produit | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :