DataColumnMappingCollection.GetDataColumn Methode

Definitie

Een statische methode die een DataColumn object retourneert zonder een DataColumnMappingCollection object te instantiëren.

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

Parameters

sourceColumn
String

De naam van de hoofdlettergevoelige kolom uit een gegevensbron.

dataType
Type

Het gegevenstype voor de kolom die wordt toegewezen.

dataTable
DataTable

Een exemplaar van DataTable.

mappingAction
MissingMappingAction

Een van de MissingMappingAction waarden.

schemaAction
MissingSchemaAction

Bepaalt de actie die moet worden uitgevoerd wanneer het bestaande DataSet schema niet overeenkomt met binnenkomende gegevens.

Retouren

Een DataColumn-object.

Van toepassing op

Zie ook