XmlReaderGetAttribute Method (Int32) |
When overridden in a derived class, gets the value of the attribute with the specified index.
Namespace: System.XmlAssembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax public abstract string GetAttribute(
int i
)
Parameters
- i
- Type: SystemInt32
The index of the attribute. The index is zero-based. (The first attribute has index 0.)
Return Value
Type:
StringThe value of the specified attribute. This method does not move the reader.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | i is out of range. It must be non-negative and less than the size of the attribute collection. |
See Also