Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
[C#]
public abstract int AttributeCount {get;}
[C++]
public: __property virtual int get_AttributeCount() = 0;
[JScript]
public abstract function get AttributeCount() : int;

Property Value

The number of attributes on the current node.

Remarks

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

Example

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

Requirements

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft