Share via


StringPrototype.localeCompare(Object, Object) Yöntem

Tanım

Belirtilen iki dizeyi karşılaştırır ve aralarındaki sözcük temelli ilişkiyi gösteren bir tamsayı döndürür.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

thisob
Object

Bu yöntemin işlem yaptığı nesne.

thatob
Object

ile karşılaştıracak thisobdize.

Döndürülenler

değerinden küçük olduğunda thisob negatif bir değer; eşittir thatobolduğunda thisob sıfır; değerinden büyük thatobolduğunda thisob pozitif bir thatobdeğer.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.