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
)
public boolean MoveToAttribute (
	String localName, 
	String namespaceURI
)
public override function MoveToAttribute (
	localName : String, 
	namespaceURI : String
) : boolean

Parameters

localName

The local name of the attribute.

namespaceURI

The namespace URI of the attribute.

Return Value

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 Microsoft .NET Framework version 2.0. You can create a validating XmlReader instance by using the XmlReaderSettings class and the Create method. For more information, see Validating XML Data with XmlReader.

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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft