CompareInfo.IsSortable 方法

定义

指示指定的 Unicode 字符或字符串是否可排序。

重载

名称 说明
IsSortable(String)

指示指定的 Unicode 字符串是否可排序。

IsSortable(Char)

指示指定的 Unicode 字符是否可排序。

IsSortable(String)

指示指定的 Unicode 字符串是否可排序。

public:
 static bool IsSortable(System::String ^ text);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable(string text);
public static bool IsSortable(string text);
[<System.Runtime.InteropServices.ComVisible(false)>]
static member IsSortable : string -> bool
static member IsSortable : string -> bool
Public Shared Function IsSortable (text As String) As Boolean

参数

text
String

一个零个或多个 Unicode 字符的字符串。

返回

true text如果参数不是空字符串(“”),并且所有 text Unicode 字符都是可排序的;否则,为 false.

属性

例外

textnull

注解

参数中的每个 str Unicode 字符都由一个或多个 UTF-16 编码 Char 对象表示。 如果在内部CompareInfo类排序表中定义了每个 Unicode 字符,并且不是私有使用或无对高或低代理项字符,则str参数是可排序的。

适用于

IsSortable(Char)

指示指定的 Unicode 字符是否可排序。

public:
 static bool IsSortable(char ch);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable(char ch);
public static bool IsSortable(char ch);
[<System.Runtime.InteropServices.ComVisible(false)>]
static member IsSortable : char -> bool
static member IsSortable : char -> bool
Public Shared Function IsSortable (ch As Char) As Boolean

参数

ch
Char

一个 Unicode 字符。

返回

如果参数可排序,则为 。

属性

注解

ch如果参数是在内部CompareInfo类排序表中定义的 Unicode 字符,并且不是私有使用或无序高或低代理项字符,则参数可排序。

适用于