AttributeCount Property

[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, gets the number of attributes on the current node.

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

public virtual int AttributeCount { get; }

Property Value

Type: System..::..Int32
The number of attributes on the current node.

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

Show: