When implemented by a class, retrieves the IDictionary value with the specified key.
[C#] In C#, this member is the indexer for the IDictionary class.
[Visual Basic] Default Property Item( _ ByVal key As Object _ ) As Object [C#] object this[ object key ] {get; set;} [C++] Object* get_Item( Object* key ) = 0;void set_Item( Object* key, Object* ) = 0; [JScript] abstract returnValue = IDictionaryObject.Item(key); IDictionaryObject.Item(key) = returnValue; -or- abstract returnValue = IDictionaryObject(key); IDictionaryObject(key) = returnValue;
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
IDictionary Interface | IDictionary Members | System.Collections Namespace