asp.net.ph

DataTableMappingCollection.Clear Method

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 ( );

Remarks

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.

Example

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 ( );
}
  C# VB

See Also

DataTableMappingCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 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