Share via


StringPrototype.localeCompare(Object, Object) Méthode

Définition

Compare les deux chaînes spécifiées et retourne un entier qui indique leur relation lexicale.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 static int localeCompare(System::Object ^ thisob, System::Object ^ thatob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_localeCompare)]
public static int localeCompare (object thisob, object thatob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_localeCompare)>]
static member localeCompare : obj * obj -> int
Public Shared Function localeCompare (thisob As Object, thatob As Object) As Integer

Paramètres

thisob
Object

Objet sur lequel cette méthode agit.

thatob
Object

Chaîne à comparer à thisob.

Retours

Valeur négative lorsque thisob est inférieur à thatob ; zéro lorsque thisob est égal à thatob ; valeur positive lorsque thisob est supérieur à thatob.

Attributs

S’applique à

Voir aussi