This documentation is archived and is not being maintained.

XmlReader.MoveToFirstAttribute Method

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

[Visual Basic]
Public MustOverride Function MoveToFirstAttribute() As Boolean
public abstract bool MoveToFirstAttribute();
public: virtual bool MoveToFirstAttribute() = 0;
public abstract function MoveToFirstAttribute() : Boolean;

Return Value

true if an attribute exists (the reader moves to the first attribute); otherwise, false (the position of the reader does not change).


See MoveToFirstAttribute (in the XmlTextReader class) for an example using this method.


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