XmlNodeReader.Depth Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the depth of the current node in the XML document.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public override int Depth { get; }

Property Value

Type: System.Int32

The depth of the current node in the XML document.

System_CAPS_noteNote

In the .NET Framework 2.0, the recommended practice is to create XmlReader instances using the XmlReaderSettings class and the Create method. This allows you to take full advantage of all the new features introduced in the .NET Framework. For more information, see the Remarks section in the XmlReader reference page.

.NET Framework
Available since 1.1
Return to top
Show: