System.Xml.XmlReader.Depth Property

When overridden in a derived class, gets the depth of the current node in the XML document.

Syntax

public abstract int Depth { get; }

Value

A int containing the depth of the current node in the XML document.

Remarks

Operation

As described above.

This property is read-only.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

Requirements

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