Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlReader.MoveToAttribute Method

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

Overload List

When overridden in a derived class, moves to the attribute with the specified index.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Sub MoveToAttribute(Integer)
[C#] public abstract void MoveToAttribute(int);
[C++] public: virtual void MoveToAttribute(int) = 0;
[JScript] public abstract function MoveToAttribute(int);

When overridden in a derived class, moves to the attribute with the specified Name.

Supported by the .NET Compact Framework.

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

When overridden in a derived class, moves to the attribute with the specified LocalName and NamespaceURI.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Function MoveToAttribute(String, String) As Boolean
[C#] public abstract bool MoveToAttribute(string, string);
[C++] public: virtual bool MoveToAttribute(String*, String*) = 0;
[JScript] public abstract function MoveToAttribute(String, String) : Boolean;

Example

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

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft