DataColumnMapping.GetDataColumnBySchemaAction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从给定的 DataColumn 中获取 DataTable。
重载
GetDataColumnBySchemaAction(DataTable, Type, MissingSchemaAction)
- Source:
- DataColumnMapping.cs
- Source:
- DataColumnMapping.cs
- Source:
- DataColumnMapping.cs
使用 DataColumn 和 DataTable 属性从给定的 MissingSchemaAction 获取 DataSetColumn。
public:
System::Data::DataColumn ^ GetDataColumnBySchemaAction(System::Data::DataTable ^ dataTable, Type ^ dataType, System::Data::MissingSchemaAction schemaAction);
public System.Data.DataColumn? GetDataColumnBySchemaAction (System.Data.DataTable dataTable, Type? dataType, System.Data.MissingSchemaAction schemaAction);
public System.Data.DataColumn GetDataColumnBySchemaAction (System.Data.DataTable dataTable, Type dataType, System.Data.MissingSchemaAction schemaAction);
member this.GetDataColumnBySchemaAction : System.Data.DataTable * Type * System.Data.MissingSchemaAction -> System.Data.DataColumn
Public Function GetDataColumnBySchemaAction (dataTable As DataTable, dataType As Type, schemaAction As MissingSchemaAction) As DataColumn
参数
- schemaAction
- MissingSchemaAction
MissingSchemaAction 值之一。
返回
数据列。
另请参阅
适用于
GetDataColumnBySchemaAction(String, String, DataTable, Type, MissingSchemaAction)
- Source:
- DataColumnMapping.cs
- Source:
- DataColumnMapping.cs
- Source:
- DataColumnMapping.cs
GetDataColumnBySchemaAction(DataTable, Type, MissingSchemaAction) 的静态版本,可以在不实例化 DataColumnMapping 对象的情况下调用。
public:
static System::Data::DataColumn ^ GetDataColumnBySchemaAction(System::String ^ sourceColumn, System::String ^ dataSetColumn, System::Data::DataTable ^ dataTable, Type ^ dataType, System::Data::MissingSchemaAction schemaAction);
public static System.Data.DataColumn? GetDataColumnBySchemaAction (string? sourceColumn, string? dataSetColumn, System.Data.DataTable dataTable, Type? dataType, System.Data.MissingSchemaAction schemaAction);
public static System.Data.DataColumn GetDataColumnBySchemaAction (string sourceColumn, string dataSetColumn, System.Data.DataTable dataTable, Type dataType, System.Data.MissingSchemaAction schemaAction);
static member GetDataColumnBySchemaAction : string * string * System.Data.DataTable * Type * System.Data.MissingSchemaAction -> System.Data.DataColumn
Public Shared Function GetDataColumnBySchemaAction (sourceColumn As String, dataSetColumn As String, dataTable As DataTable, dataType As Type, schemaAction As MissingSchemaAction) As DataColumn
参数
- sourceColumn
- String
数据源中区分大小写的列名。
- dataType
- Type
正被映射的列的数据类型。
- schemaAction
- MissingSchemaAction
确定现有 DataSet 架构与传入数据不匹配时需要执行的操作。
返回
DataColumn 对象。