CompareInfo.GetSortKeyLength(ReadOnlySpan<Char>, CompareOptions) Method
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.
Gets the total number of sort key bytes that would be produced from the specified input.
public int GetSortKeyLength (ReadOnlySpan<char> source, System.Globalization.CompareOptions options = System.Globalization.CompareOptions.None);
member this.GetSortKeyLength : ReadOnlySpan<char> * System.Globalization.CompareOptions -> int
Public Function GetSortKeyLength (source As ReadOnlySpan(Of Char), Optional options As CompareOptions = System.Globalization.CompareOptions.None) As Integer
- source
- ReadOnlySpan<Char>
The text to get the sort key for.
- options
- CompareOptions
An optional combination of CompareOptions enumeration values to use for computing the sort key. The default value is None.
The length, in bytes, of the sort key.
options
contains an unsupported flag.
-or-
source
cannot be processed using the desired CompareOptions under the current CompareInfo.
Product | Versions |
---|---|
.NET | 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: