System.Data.Common Namespace DataTableMappingCollection Class
Clears the collection of all DataTableMapping objects.
[ VB ] Public Sub Clear ( ) [ C# ] public void Clear ( ); [ C++ ] public: void Clear ( ); [ JScript ] public function Clear ( );
Use this method to remove all DataTableMapping objects from the TableMappings collection of a specified DataTableMapping object. To remove a particular DataTableMapping from the collection, use the Remove method.
This method resets the TableMappings.Count property to 0.
The following example gets the DataTableMappingCollection of a given DataAdapter, then clears the collection.
private void ClearTableMappings ( DataAdapter myAdapter ) { DataTableMappingCollection myTables = myAdapter.TableMappings; myTables.Clear ( ); }
Private Sub ClearTableMappings ( ByVal myAdapter As DataAdapter ) Dim myTables As DataTableMappingCollection = myAdapter.TableMappings myTables.Clear ( ) End Sub
DataTableMappingCollection 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