Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XmlValidatingReader.MoveToAttribute Method (String, String)

Moves to the attribute with the specified local name and namespace Uniform Resource Identifier (URI).

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

public override bool MoveToAttribute(
	string localName,
	string namespaceURI
)

Parameters

localName
Type: System.String

The local name of the attribute.

namespaceURI
Type: System.String

The namespace URI of the attribute.

Return Value

Type: System.Boolean
true if the attribute is found; otherwise, false. If false, the position of the reader does not change.

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.

After calling this method, the Name, NamespaceURI, and Prefix properties reflect the properties of that attribute.

.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