Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlReader.Depth Property

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

[Visual Basic]
Public MustOverride ReadOnly Property Depth As Integer
[C#]
public abstract int Depth {get;}
[C++]
public: __property virtual int get_Depth() = 0;
[JScript]
public abstract function get Depth() : int;

Property Value

The depth of the current node in the XML document.

Example

See Depth (in the XmlTextReader class) for an example using this property.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft