Export (0) Print
Expand All

SqlDataReader.Depth Property

Gets a value indicating the depth of nesting for the current row.

[Visual Basic]
Public Overridable ReadOnly Property Depth As Integer  Implements _
   IDataReader.Depth
[C#]
public virtual int Depth {get;}
[C++]
public: __property virtual int get_Depth();
[JScript]
public function get Depth() : int;

Property Value

The depth of nesting for the current row.

Implements

IDataReader.Depth

Remarks

The outermost table has a depth of zero. The .NET Framework Data Provider for SQL Server does not support nesting and always returns zero.

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

See Also

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace

Show:
© 2015 Microsoft