asp.net.ph

DataColumnMappingCollection.Clear Method

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

Remarks

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.

Example

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

See Also

DataColumnMappingCollection 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