SortKey::ToString Method ()

 

Returns a string that represents the current SortKey object.

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

public:
virtual String^ ToString() override

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: