CompareInfo.GetSortKeyLength(ReadOnlySpan<Char>, CompareOptions) Método
Definição
Obtém o número total de bytes de chave de classificação que seriam produzidos com base na entrada especificada.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
Parâmetros
- source
- ReadOnlySpan<Char>
O texto para o qual obter a chave de classificação.The text to get the sort key for.
- options
- CompareOptions
Uma combinação opcional de valores de enumeração CompareOptions a serem usados para calcular a chave de classificação.An optional combination of CompareOptions enumeration values to use for computing the sort key. O valor padrão é None.The default value is None.
Retornos
O tamanho, em bytes, da chave de classificação.The length, in bytes, of the sort key.
Exceções
options contém um sinalizador incompatível.options contains an unsupported flag.
- ou --or-
source não pode ser processado com o CompareOptions desejado no CompareInfo atual.source cannot be processed using the desired CompareOptions under the current CompareInfo.