This documentation is archived and is not being maintained.

IDictionary.Keys Property

When implemented by a class, gets an ICollection containing the keys of the IDictionary.

[Visual Basic]
ReadOnly Property Keys As ICollection
ICollection Keys {get;}
__property ICollection* get_Keys();
function get Keys() : ICollection;

Property Value

An ICollection containing the keys of the IDictionary.


The order of the keys in the returned ICollection is unspecified, but it is guaranteed to be the same order as the corresponding values in the ICollection returned by the Values method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IDictionary Interface | IDictionary Members | System.Collections Namespace | ICollection