asp.net.ph

DataTableMappingCollection.RemoveAt Method ( Int32 )

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

TableMappings

index
The zero-based index of the DataTableMapping to remove.

Implements

IList.RemoveAt

Exceptions


Exception Type Condition
IndexOutOfRangeException The specified index does not exist.

Example

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

}
  C# VB

See Also

DataTableMappingCollection Members   DataTableMappingCollection.RemoveAt Overload List Skip Navigation Links




Previous page Back to top Next page

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