System.Data.Common Namespace DataTableMappingCollection Class
Removes the DataTableMapping at the specified index from the collection.
[ VB ] NotOverridable Overloads Public Sub RemoveAt ( _ ByVal index As Integer _ ) Implements IList.RemoveAt [ C# ] public void RemoveAt ( int index ); [ C++ ] public: __sealed void RemoveAt ( int index ); [ JScript ] public function RemoveAt ( index : int );
IList.RemoveAt
The following example first uses the Contains method to find a DataTableMapping at the specified index within the TableMappings collection of a specifed DataTableMapping object. If the mapping exists, the example removes it.
public void SearchTableMappings ( DataAdapter myAdapter ) { DataTableMappingCollection myTables = myAdapter.TableMappings; if ( myTables.Contains ( myTables [ 3 ] ) myTables.RemoveAt ( 3 ); }
Public Sub SearchTableMappings ( ByVal myAdapter As DataAdapter ) Dim myTables As DataTableMappingCollection = myAdapter.TableMappings If myTables.Contains ( myTables ( 3 ) ) Then myTables.RemoveAt ( 3 ); End If End Sub
DataTableMappingCollection Members DataTableMappingCollection.RemoveAt Overload List
© 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