DataTableMapping.GetDataColumn 方法

定义

为给定的列名返回 DataColumn 对象。

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

参数

sourceColumn
String

DataColumn 的名称。

dataType
Type

sourceColumn 的数据类型。

dataTable
DataTable

DataSet 中要映射到的表名。

mappingAction
MissingMappingAction

MissingMappingAction 值之一。

schemaAction
MissingSchemaAction

MissingSchemaAction 值之一。

返回

DataColumn 对象。

适用于

另请参阅