SqlDataReader.Depth Property

Definition

Gets a value that indicates the depth of nesting for the current row.

public:
 property int Depth { int get(); };
public int Depth { get; }
member this.Depth : int
Public ReadOnly Property Depth As Integer

Property Value

The depth of nesting for the current row.

Implements

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.

Applies to

See also