Export (0) Print
Expand All

SortedList.Keys Property

Gets the keys in the SortedList.

[Visual Basic]
Public Overridable ReadOnly Property Keys As ICollection  _
   Implements IDictionary.Keys
[C#]
public virtual ICollection Keys {get;}
[C++]
public: __property virtual ICollection* get_Keys();
[JScript]
public function get Keys() : ICollection;

Property Value

An ICollection containing the keys in the SortedList.

Implements

IDictionary.Keys

Remarks

The ICollection is a read-only view of the keys of the SortedList. Modifications made to the underlying SortedList are immediately reflected in the ICollection.

The elements of the ICollection are sorted in the same order as the keys of the SortedList.

Similar to GetKeyList, but returns an ICollection instead of an IList.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SortedList Class | SortedList Members | System.Collections Namespace | ICollection | Values | GetKeyList | Performing Culture-Insensitive String Operations in Collections

Show:
© 2015 Microsoft