CompareInfo.IsSortable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether a specified Unicode character or string is sortable.
Overloads
| Name | Description |
|---|---|
| IsSortable(String) |
Indicates whether a specified Unicode string is sortable. |
| IsSortable(Char) |
Indicates whether a specified Unicode character is sortable. |
IsSortable(String)
Indicates whether a specified Unicode string is sortable.
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
Parameters
- text
- String
A string of zero or more Unicode characters.
Returns
true if the text parameter is not an empty string ("") and all the Unicode characters in text are sortable; otherwise, false.
- Attributes
Exceptions
text is null.
Remarks
Each Unicode character in the str parameter is represented by one or more UTF-16 encoded Char objects. The str parameter is sortable if each Unicode character is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.
Applies to
IsSortable(Char)
Indicates whether a specified Unicode character is sortable.
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
Parameters
- ch
- Char
A Unicode character.
Returns
true if the ch parameter is sortable; otherwise, false.
- Attributes
Remarks
The ch parameter is sortable if it is a Unicode character that is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.