System.Xml.XmlReader.Item Property
Retrieves the value of the attribute with the specified qualified name.

Syntax

This is the default property for this class.

public virtual string this [string name] { get; }

Parameters

name
A string specifying the qualified name of the attribute.

Value

A string containing the value of the specified attribute, or null if the attribute is not found.

Remarks

Operation

This property does not move the reader.

If the reader is positioned on a DocumentType node, this method can be used to get the PUBLIC and SYSTEM literals.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0