Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Show:
© 2015 Microsoft