SortedList<TKey, TValue>::IDictionary<TKey, TValue>::Keys Property

 

Gets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.

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

private:
property ICollection<TKey>^ Keys {
	virtual ICollection<TKey>^ get() sealed = IDictionary<TKey, TValue>::Keys::get;
}

Property Value

Type: System.Collections.Generic::ICollection<TKey>^

An ICollection<T> containing the keys of the IDictionary<TKey, TValue>.

The order of the keys in the ICollection<T> is the same as the order in the SortedList<TKey, TValue>.

Retrieving the value of this property is an O(1) operation.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: