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
[C#]
ICollection Keys {get;}
[C++]
__property ICollection* get_Keys();
[JScript]
function get Keys() : ICollection;

Property Value

An ICollection containing the keys of the IDictionary.

Remarks

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.

Requirements

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

Show: