Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.HasAttributes Property

Gets a value indicating whether the current node has any attributes. [Edit]

public virtual bool HasAttributes { get; }

Value

A bool where true indicates the current node has attributes; otherwise, false. [Edit]

Remarks

Operation

As described above.

This property is read-only.

This property returns true if the XmlReader.AttributeCount property of the current node is greater than zero.

Note to Inheritors
Override this property to customize the behavior of this property in types derived from the System.Xml.XmlReader class.

Usage
Use this property to determine whether the current node has any attributes.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0