Share via


MoveToAttribute Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overridable Function MoveToAttribute ( _
    name As String _
) As Boolean
public virtual bool MoveToAttribute(
    string name
)
public:
virtual bool MoveToAttribute(
    String^ name
)
abstract MoveToAttribute : 
        name:string -> bool 
override MoveToAttribute : 
        name:string -> bool 
public function MoveToAttribute(
    name : String
) : boolean

Parameters

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

XmlReader Class

MoveToAttribute Overload

System.Xml Namespace