Keys Property
Collapse the table of content
Expand the table of content

SortedList::Keys Property

 

Gets the keys in a SortedList object.

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

public:
property ICollection^ Keys {
	virtual ICollection^ get();
}

Property Value

Type: System.Collections::ICollection^

An ICollection object containing the keys in the SortedList object.

The ICollection object is a read-only view of the keys of the SortedList object. 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.

This property is similar to the GetKeyList method, but returns an ICollection object instead of an IList object.

This method is an O(1) operation.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft