DbDataReader.GetSchemaTable 方法

定义

返回一个 DataTable,它描述 DbDataReader 的列元数据。Returns a DataTable that describes the column metadata of the DbDataReader.

public:
 virtual System::Data::DataTable ^ GetSchemaTable();
public:
 abstract System::Data::DataTable ^ GetSchemaTable();
public virtual System.Data.DataTable GetSchemaTable ();
public abstract System.Data.DataTable GetSchemaTable ();
abstract member GetSchemaTable : unit -> System.Data.DataTable
override this.GetSchemaTable : unit -> System.Data.DataTable
abstract member GetSchemaTable : unit -> System.Data.DataTable
Public Overridable Function GetSchemaTable () As DataTable
Public MustOverride Function GetSchemaTable () As DataTable

返回

DataTable

一个描述列元数据的 DataTableA DataTable that describes the column metadata.

实现

例外

DbDataReader 是关闭的。The DbDataReader is closed.

列索引超出范围。The column index is out of range.

仅限 .NET Core:不支持此成员。.NET Core only: This member is not supported.

适用于

另请参阅