Export (0) Print
Expand All

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

Show:
© 2015 Microsoft