SqlDataReader.Depth Property

Definition

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

public:
 virtual property int Depth { int get(); };
public override int Depth { get; }
member this.Depth : int
Public Overrides 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