DbDataReader.GetSchemaTable Method ()

 
System_CAPS_noteNote

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)

abstract GetSchemaTable : unit -> DataTable
override GetSchemaTable : unit -> DataTable

Return Value

Type: System.Data.DataTable

A DataTable that describes the column metadata.

Exception Condition
InvalidOperationException

The SqlDataReader is closed.

.NET Framework
Available since 2.0
Return to top
Show: