DbDataReader.GetSchemaTable Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

Public Overridable Function GetSchemaTable As DataTable

Return Value

Type: System.Data.DataTable

A DataTable that describes the column metadata.

Exception Condition

The SqlDataReader is closed.

.NET Framework
Available since 2.0
Return to top