dotConnect for SQLite Documentation
Devart.Common Namespace / DbLoaderColumnCollection Class / Remove Method
The DbLoaderColumn object to remove from the collection.
Example

In This Topic
Remove Method (DbLoaderColumnCollection)
In This Topic
Removes the specified DbLoaderColumn object from the collection.
Syntax
'Declaration
 
Public Sub Remove( _
   ByVal value As DbLoaderColumn _
) 
 

Parameters

value
The DbLoaderColumn object to remove from the collection.
Example
The following example searches for a Devart.Data.SQLite.SQLiteLoaderColumn object in a Devart.Data.SQLite.SQLiteLoaderColumnCollection. If the column exists, it is removed. This example assumes that a Devart.Data.SQLite.SQLiteLoaderColumnCollection has already been created.
public void SearchMyColumns() {
  // ...
  // create SQLiteLoaderColumnCollection myColumns and SQLiteLoaderColumn myNewColumn
  // ...
  if (myColumns.Contains((Object) myNewColumn))
    myColumns.Remove(((Object) myNewColumn).ToString());
}
Public Sub SearchMyColumns()
  ' ...
  ' create SQLiteLoaderColumnCollection myColumns and SQLiteLoaderColumn myNewColumn
  ' ...
  If myColumns.Contains(CType(myNewColumn, Object)) Then
    myColumns.Remove(CType(myNewColumn, Object).ToString())
  End If
End Sub 'SearchMyColumns
See Also