This documentation is archived and is not being maintained.

XmlReader.AttributeCount Property

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

[Visual Basic]
Public MustOverride ReadOnly Property AttributeCount As Integer
public abstract int AttributeCount {get;}
public: __property virtual int get_AttributeCount() = 0;
public abstract function get AttributeCount() : int;

Property Value

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.)


See AttributeCount (in the XmlTextReader class) for an example using this method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace