Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MoveToAttribute Method (Int32)

XmlValidatingReader.MoveToAttribute Method (Int32)

Moves to the attribute with the specified index.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

abstract MoveToAttribute : 
        i:int -> unit  
override MoveToAttribute : 
        i:int -> unit

Parameters

i
Type: System.Int32

The index of the attribute.

ExceptionCondition
ArgumentOutOfRangeException

The i parameter is less than 0 or greater than or equal to AttributeCount.

NoteNote

The XmlValidatingReader class is obsolete in .NET Framework 2.0. You can create a validating XmlReader instance by using the XmlReaderSettings class and the Create method. For more information, see the Remarks section of the XmlReader reference page.

The following example reads all the elements on the root node.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft