Remove Method (DbLoaderColumnCollection)
Removes the specified
DbLoaderColumn object from the collection.
The following example searches for a
Devart.Data.PostgreSql.PgSqlLoaderColumn object in a
Devart.Data.PostgreSql.PgSqlLoaderColumnCollection. If the column exists, it is removed. This example assumes that a
Devart.Data.PostgreSql.PgSqlLoaderColumnCollection has already been created.
public void SearchMyColumns() {
// ...
// create PgSqlLoaderColumnCollection myColumns and PgSqlLoaderColumn myNewColumn
// ...
if (myColumns.Contains((Object) myNewColumn))
myColumns.Remove(((Object) myNewColumn).ToString());
}
Public Sub SearchMyColumns()
' ...
' create PgSqlLoaderColumnCollection myColumns and PgSqlLoaderColumn myNewColumn
' ...
If myColumns.Contains(CType(myNewColumn, Object)) Then
myColumns.Remove(CType(myNewColumn, Object).ToString())
End If
End Sub 'SearchMyColumns
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2