Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.AttributeCount Property

Gets the number of attributes on the current node. [Edit]

public abstract int AttributeCount { get; }

Value

A int containing the number of attributes on the current node, or zero if the current node does not support attributes. [Edit]

Remarks

Note: This property is only relevant to the DocumentType, Element, and XmlDeclaration node types of the System.Xml.XmlNodeType enumeration. Other node types do not have attributes.

Operation

As described above.

This property is read-only.

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

[Edit]

Requirements

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