Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Show:
© 2015 Microsoft