Share via


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)

Syntax

'Declaration
Public Overridable ReadOnly Property AttributeCount As Integer
public virtual int AttributeCount { get; }
public:
virtual property int AttributeCount {
    int get ();
}
abstract AttributeCount : int with get
override AttributeCount : int with get
function get AttributeCount () : int

Property Value

Type: System. . :: . .Int32
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.)

.NET Framework Security

See Also

Reference

XmlReader Class

System.Xml Namespace