System.Xml.XmlReader.AttributeCount Property

When overridden in a derived class, gets the number of attributes on the current node.

Syntax

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.

Remarks

This property is relevant to Element, DocumentType and XmlDeclaration nodes only. (Other node types do not have attributes.)

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