DataColumnMappingCollection.GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction) Method

Definition

A static method that returns a DataColumn object without instantiating a DataColumnMappingCollection object.

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);
static member GetDataColumn : System.Data.Common.DataColumnMappingCollection * string * Type * System.Data.DataTable * System.Data.MissingMappingAction * System.Data.MissingSchemaAction -> System.Data.DataColumn

Parameters

sourceColumn
String

The case-sensitive column name from a data source.

dataType
Type

The data type for the column being mapped.

dataTable
DataTable

An instance of DataTable.

mappingAction
MissingMappingAction

One of the MissingMappingAction values.

schemaAction
MissingSchemaAction

Determines the action to take when the existing DataSet schema does not match incoming data.

Returns

Applies to

See also