Gets or sets a specified attribute value.
[C#] In C#, this member is the indexer for the AttributeCollection class.
[Visual Basic] Overridable Public Default Property Item( _ ByVal key As String _ ) As String [C#] public string this[ string key ] {virtual get; virtual set;} [C++] public: __property virtual String* get_Item( String* key ); public: __property virtual void set_Item( String* key, String* ); [JScript] returnValue = AttributeCollectionObject.Item(key); AttributeCollectionObject.Item(key) = returnValue; -or- returnValue = AttributeCollectionObject(key); AttributeCollectionObject(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.
The attribute value.
AttributeCollection Class | AttributeCollection Members | System.Web.UI Namespace