StringPrototype.localeCompare(Object, Object) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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