SortKey::KeyData Property


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

Gets the byte array representing the current SortKey object.

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

property array<unsigned char>^ KeyData {
	virtual array<unsigned char>^ get();

Property Value

Type: array<System::Byte>^

A byte array representing the current SortKey object.

For more information about the use of the data returned by the KeyData property in comparing strings, see the SortKey class topic.

The following code example displays an original string and the equivalent string and key data for a case-sensitive sort key and a case-insensitive sort key.

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

.NET Framework
Available since 1.1
Return to top