SortKey.ToString Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a string that represents the current SortKey object.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

override ToString : unit -> string

Return Value

Type: System.String

A string that represents the current SortKey object.

The return value is the concatenation of the string "SortKey - ", the culture identifier and compare options of the current SortKey object, and the value of the OriginalString property.

This method overrides Object.ToString.

The following code example displays an original string, the strings yielded by the ToString method for case-sensitive and case-insensitive sort keys, and the key data for case-sensitive and case-insensitive sort keys.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: