XmlValidatingReader.MoveToAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves to the specified attribute.
Overloads
MoveToAttribute(Int32) |
Moves to the attribute with the specified index. |
MoveToAttribute(String) |
Moves to the attribute with the specified name. |
MoveToAttribute(String, String) |
Moves to the attribute with the specified local name and namespace Uniform Resource Identifier (URI). |
MoveToAttribute(Int32)
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
Moves to the attribute with the specified index.
public:
override void MoveToAttribute(int i);
public override void MoveToAttribute(int i);
override this.MoveToAttribute : int -> unit
Public Overrides Sub MoveToAttribute (i As Integer)
Parameters
- i
- Int32
The index of the attribute.
Exceptions
The i
parameter is less than 0 or greater than or equal to AttributeCount.
Remarks
Note
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.
See also
Applies to
MoveToAttribute(String)
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
Moves to the attribute with the specified name.
public:
override bool MoveToAttribute(System::String ^ name);
public override bool MoveToAttribute(string name);
override this.MoveToAttribute : string -> bool
Public Overrides Function MoveToAttribute (name As String) As Boolean
Parameters
- name
- String
The qualified name of the attribute.
Returns
true
if the attribute is found; otherwise, false
. If false
, the position of the reader does not change.
Remarks
Note
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.
See also
Applies to
MoveToAttribute(String, String)
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
- Source:
- XmlValidatingReader.cs
Moves to the attribute with the specified local name and namespace Uniform Resource Identifier (URI).
public:
override bool MoveToAttribute(System::String ^ localName, System::String ^ namespaceURI);
public override bool MoveToAttribute(string localName, string? namespaceURI);
public override bool MoveToAttribute(string localName, string namespaceURI);
override this.MoveToAttribute : string * string -> bool
Public Overrides Function MoveToAttribute (localName As String, namespaceURI As String) As Boolean
Parameters
- localName
- String
The local name of the attribute.
- namespaceURI
- String
The namespace URI of the attribute.
Returns
true
if the attribute is found; otherwise, false
. If false
, the position of the reader does not change.
Remarks
Note
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.