StringPrototype.localeCompare(Object, Object) Methode

Definition

Vergleicht die beiden angegebenen Zeichenfolgen und gibt eine ganze Zahl zurück, die die lexikalische Beziehung zwischen ihnen angibt.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

thisob
Object

Das Objekt, auf das diese Methode ausgeführt wird.

thatob
Object

Die zu vergleichende thisobZeichenfolge.

Gibt zurück

Ein negativer Wert, wenn thisob kleiner als thatob; Null ist, wenn thisob gleich thatob; ein positiver Wert, wenn thisob größer als thatobist .

Attribute

Gilt für:

Weitere Informationen