This documentation is archived and is not being maintained.

XmlReader.MoveToNextAttribute Method

When overridden in a derived class, moves to the next attribute.

[Visual Basic]
Public MustOverride Function MoveToNextAttribute() As Boolean
[C#]
public abstract bool MoveToNextAttribute();
[C++]
public: virtual bool MoveToNextAttribute() = 0;
[JScript]
public abstract function MoveToNextAttribute() : Boolean;

Return Value

true if there is a next attribute; false if there are no more attributes.

Remarks

If the current node is an element node, this method is equivalent to MoveToFirstAttribute. If MoveToNextAttribute returns true, the reader moves to the next attribute; otherwise, the position of the reader does not change.

Example

See MoveToNextAttribute (in the XmlNodeReader class) for an example using this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace

Show: