SqlDataReader.GetColumnSchema Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera kolekcję schematów kolumn tylko do odczytu.
public:
System::Collections::ObjectModel::ReadOnlyCollection<System::Data::Common::DbColumn ^> ^ GetColumnSchema();
public:
virtual System::Collections::ObjectModel::ReadOnlyCollection<System::Data::Common::DbColumn ^> ^ GetColumnSchema();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Common.DbColumn> GetColumnSchema ();
member this.GetColumnSchema : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Common.DbColumn>
abstract member GetColumnSchema : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Common.DbColumn>
override this.GetColumnSchema : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Common.DbColumn>
Public Function GetColumnSchema () As ReadOnlyCollection(Of DbColumn)
Zwraca
Kolekcja schematów kolumn tylko do odczytu).
Implementuje
Uwagi
Ta metoda jest implementacją IDbColumnSchemaGenerator.GetColumnSchema() metody, która umożliwia użycie interfejsu IDbColumnSchemaGenerator do wypełniania DbColumn metadanych schematu bez użycia elementu DataTable.