Bagikan melalui


DataTableMapping.GetDataColumn Metode

Definisi

Mengembalikan DataColumn objek untuk nama kolom tertentu.

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

Parameter

sourceColumn
String

Nama DataColumn.

dataType
Type

Jenis data untuk sourceColumn.

dataTable
DataTable

Nama tabel dari ke DataSet peta ke.

mappingAction
MissingMappingAction

Salah MissingMappingAction satu nilai.

schemaAction
MissingSchemaAction

Salah MissingSchemaAction satu nilai.

Mengembalikan

Objek DataColumn.

Berlaku untuk

Lihat juga