System.Data.Common Namespace DataTableMapping Class
Returns a DataTable for a given DataSet and MissingSchemaAction.
[ VB ] Public Function GetDataTableBySchemaAction ( _ ByVal dataSet As DataSet, _ ByVal schemaAction As MissingMappingAction _ ) As DataTable [ C# ] public DataTable GetDataTableBySchemaAction ( DataSet dataSet, MissingMappingAction schemaAction ); [ C++ ] public: DataTable* GetDataTableBySchemaAction ( DataSet* dataSet, MissingMappingAction schemaAction ); [ JScript ] public function GetDataTableBySchemaAction ( dataSet : DataSet, schemaAction : MissingMappingAction ) : DataTable;
A DataTable.
If the DataTable does not exist, the following happens for a given MissingSchemaAction:
The following example gets a DataTable for a given DataSet. If no table exists, a null reference is returned.
void CreateDataTable ( DataSet myDataSet ) { DataTable currentCol = myMap.GetDataTableBySchemaAction ( myDataSet, MissingSchemaAction.Ignore ); }
Sub CreateDataTable ( myDataSet As DataSet ) Dim currentCol As DataTable = myMap.GetDataTableBySchemaAction ( _ myDataSet, MissingSchemaAction.Ignore ) End Sub
DataTableMapping Members
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph