Share via


DataReaderWrapper.GetSchemaTable Method

Returns a DataTable that describes the column metadata of the IDataReader.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

Syntax

'Declaration
Public Overridable Function GetSchemaTable As DataTable
public virtual DataTable GetSchemaTable()
public:
virtual DataTable^ GetSchemaTable()
public function GetSchemaTable() : DataTable

Return Value

A DataTable that describes the column metadata.

Implements

IDataReader.GetSchemaTable()

Exceptions

Exception Condition
System.InvalidOperationException The IDataReader is closed.

See Also

DataReaderWrapper Class

Microsoft.Practices.EnterpriseLibrary.Data Namespace