StringPrototype.localeCompare(Object, Object) Methode

Definitie

Vergelijkt de twee opgegeven tekenreeksen en retourneert een geheel getal dat de lexicale relatie tussen deze tekenreeksen aangeeft.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

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

Parameters

thisob
Object

Het object waarop deze methode handelt.

thatob
Object

De tekenreeks die moet worden vergeleken met thisob.

Retouren

Een negatieve waarde wanneer thisob kleiner is dan thatob; nul als thisob gelijk is thatobaan ; een positieve waarde wanneer thisob deze groter is dan thatob.

Kenmerken

Van toepassing op

Zie ook