DataColumnMappingCollection.GetDataColumn(DataColumnMappingCollection, String, Type, DataTable, MissingMappingAction, MissingSchemaAction) Yöntem

Tanım

Bir DataColumn nesneyi örneklemeden bir nesne döndüren statik bir yöntem 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

Parametreler

sourceColumn
String

Bir veri kaynağından büyük/küçük harfe duyarlı sütun adı.The case-sensitive column name from a data source.

dataType
Type

Eşlenen sütunun veri türü.The data type for the column being mapped.

dataTable
DataTable

DataTable öğesinin bir örneği.An instance of DataTable.

mappingAction
MissingMappingAction

MissingMappingActionDeğerlerden biri.One of the MissingMappingAction values.

schemaAction
MissingSchemaAction

Mevcut DataSet şema gelen verilerle eşleşmezse gerçekleştirilecek eylemi belirler.Determines the action to take when the existing DataSet schema does not match incoming data.

Döndürülenler

DataColumn

Bir DataColumn nesnesi.A DataColumn object.

Şunlara uygulanır

Ayrıca bkz.