次の方法で共有


SqlDataReader.Depth プロパティ

現在の行の入れ子の深さを示す値を取得します。

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;

プロパティ値

現在の行の入れ子の深さ。

実装

IDataReader.Depth

解説

最も外側のテーブルの深さは 0 です。.NET Framework Data Provider for SQL Server は入れ子をサポートしないため、常にゼロが返されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SqlDataReader クラス | SqlDataReader メンバ | System.Data.SqlClient 名前空間