Gets an ICollection containing the keys in the Dictionary.
[Visual Basic] Overridable Public ReadOnly Property Keys As ICollection [C#] public ICollection Keys {virtual get;} [C++] public: __property virtual ICollection* get_Keys(); [JScript] public function get Keys() : ICollection;
An ICollection containing the keys in the Dictionary.
The order of the keys in the ICollection is unspecified, but it is the same order as the associated values in the ICollection returned by the Values method.
Changes to the Dictionary will continue to be reflected in the returned ICollection. It is not a static copy.
Dictionary Class | Dictionary Members | System.Collections Namespace | ICollection | Values