System.Data.Common Namespace DataColumnMappingCollection Class
Clears the collection of all DataColumnMapping objects.
[ VB ] Public Sub Clear ( ) [ C# ] public void Clear ( ); [ C++ ] public: void Clear ( ); [ JScript ] public function Clear ( );
Use this method to remove all DataColumnMapping objects from the ColumnMappings collection of a specified DataTableMapping object. To remove a particular DataColumnMapping from the collection, use the Remove method.
This method resets the ColumnMappings.Count property to 0.
The following example gets the DataColumnMappingCollection of a given DataTableMapping, then clears the collection.
private void ClearColumnMappings ( DataTableMapping myTableMap ) { DataColumnMappingCollection myFieldsMaps = myTableMap.ColumnMappings; myFieldsMaps.Clear ( ); }
Private Sub ClearColumnMappings ( ByVal myTableMap As DataTableMapping ) Dim myFieldsMaps As DataColumnMappingCollection = myTableMap.ColumnMappings myFieldsMaps.Clear ( ) End Sub
DataColumnMappingCollection Members
Check out related books at Amazon
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved. If you have any question, comment or suggestion about this site, please send us a note