RuleBasedCollator.GetCollationKey(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將字串轉換成一系列字元,可與 CollationKey 進行比較。
[Android.Runtime.Register("getCollationKey", "(Ljava/lang/String;)Ljava/text/CollationKey;", "GetGetCollationKey_Ljava_lang_String_Handler")]
public override Java.Text.CollationKey? GetCollationKey(string? source);
[<Android.Runtime.Register("getCollationKey", "(Ljava/lang/String;)Ljava/text/CollationKey;", "GetGetCollationKey_Ljava_lang_String_Handler")>]
override this.GetCollationKey : string -> Java.Text.CollationKey
參數
- source
- String
指定的原始文本。
傳回
- 屬性
備註
將字串轉換成一系列字元,可與 CollationKey.compareTo 比較。 此會覆寫 java.text.Collator.getCollationKey。 它可以在子職業中被覆寫。
Java 文件 java.text.RuleBasedCollator.getCollationKey(java.lang.String)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。