DataColumnMappingCollection.GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction) メソッド

定義

DataColumn オブジェクトをインスタンス化せずに DataColumnMappingCollection オブジェクトを返す静的メソッド。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);
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

パラメーター

sourceColumn
String

データ ソースでの列名、大文字と小文字が区別されます。The case-sensitive column name from a data source.

dataType
Type

割り当てられる列のデータ型。The data type for the column being mapped.

dataTable
DataTable

DataTable のインスタンス。An instance of DataTable.

mappingAction
MissingMappingAction

MissingMappingAction 値のいずれか 1 つ。One of the MissingMappingAction values.

schemaAction
MissingSchemaAction

既存の DataSet スキーマが受信データと一致しないときに実行するアクションを決定します。Determines the action to take when the existing DataSet schema does not match incoming data.

戻り値

DataColumn

DataColumn オブジェクト。A DataColumn object.

適用対象

こちらもご覧ください