ConfigurationKeyComparer.Compare(String, String) 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.
Compare deux chaînes.
public:
virtual int Compare(System::String ^ x, System::String ^ y);
public int Compare(string? x, string? y);
abstract member Compare : string * string -> int
override this.Compare : string * string -> int
Public Function Compare (x As String, y As String) As Integer
Paramètres
- x
- String
Première chaîne.
- y
- String
Seconde chaîne.
Retours
Inférieur à 0 si x est inférieur à y, 0 si x est égal à y et supérieur à 0 si x est supérieur à y.