Bagikan melalui


DataColumnMappingCollection.GetDataColumn Metode

Definisi

Metode statis yang mengembalikan DataColumn objek tanpa membuat instans DataColumnMappingCollection objek.

public:
 static System::Data::DataColumn ^ GetDataColumn(System::Data::Common::DataColumnMappingCollection ^ columnMappings, System::String ^ sourceColumn, Type ^ dataType, System::Data::DataTable ^ dataTable, System::Data::MissingMappingAction mappingAction, System::Data::MissingSchemaAction schemaAction);
public static System.Data.DataColumn? GetDataColumn (System.Data.Common.DataColumnMappingCollection? columnMappings, string sourceColumn, Type? dataType, System.Data.DataTable dataTable, System.Data.MissingMappingAction mappingAction, System.Data.MissingSchemaAction schemaAction);
public static System.Data.DataColumn GetDataColumn (System.Data.Common.DataColumnMappingCollection columnMappings, string sourceColumn, Type dataType, System.Data.DataTable dataTable, System.Data.MissingMappingAction mappingAction, System.Data.MissingSchemaAction schemaAction);
static member GetDataColumn : System.Data.Common.DataColumnMappingCollection * string * Type * System.Data.DataTable * System.Data.MissingMappingAction * System.Data.MissingSchemaAction -> System.Data.DataColumn
Public Shared Function GetDataColumn (columnMappings As DataColumnMappingCollection, sourceColumn As String, dataType As Type, dataTable As DataTable, mappingAction As MissingMappingAction, schemaAction As MissingSchemaAction) As DataColumn

Parameter

sourceColumn
String

Nama kolom peka huruf besar/kecil dari sumber data.

dataType
Type

Jenis data untuk kolom yang sedang dipetakan.

dataTable
DataTable

Instans DataTable.

mappingAction
MissingMappingAction

Salah MissingMappingAction satu nilai.

schemaAction
MissingSchemaAction

Menentukan tindakan yang harus diambil ketika skema yang DataSet ada tidak cocok dengan data masuk.

Mengembalikan

Objek DataColumn.

Berlaku untuk

Lihat juga