Mono Class Library: System.Xml.XmlTextReader Overview | MembersSystem.Xml.XmlTextReader.MoveToAttribute Method |
Moves the position of the current instance to the attribute with the specified index relative to the containing element. [Edit]
|
Type Reason ArgumentOutOfRangeException i is less than 0 or greater than or equal to the XmlTextReader.AttributeCount of the containing element. Note: XmlTextReader.AttributeCount returns zero for all node types except Attribute, DocumentType, Element, and XmlDeclaration. Therefore, this exception is thrown if the reader is not positioned on one of these node types.[Edit]
After calling this method, the XmlTextReader.Name, XmlTextReader.NamespaceURI, and XmlTextReader.Prefix properties reflect the properties of the new attribute.
Note:[Edit]This method overrides XmlReader.MoveToAttribute(string).
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0