When overridden in a derived class, gets the value of the attribute with the specified index.
[C#] In C#, this property is the indexer for the XmlReader class.
[Visual Basic]
Overloads Public MustOverride Default ReadOnly Property Item( _
ByVal i As Integer _
) As String
[C#]
public abstract string this[
int i
] {get;}
[C++]
public: __property virtual String* get_Item(
int i
) = 0;
[JScript]
returnValue = XmlReaderObject.Item(i);
-or-
returnValue = XmlReaderObject(i); [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 property whose type is Object and whose index type is String.
Arguments [JScript]
- i
- The index of the attribute.
Parameters [Visual Basic, C#, C++]
- i
- The index of the attribute.
Property Value
The value of the specified attribute.
Remarks
This property does not move the reader.
Example
See the Item property in the XmlTextReader class for an example using this property.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard
See Also
XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.Item Overload List | GetAttribute