dotConnect for SQL Server 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 _
    ) 
    public void Remove( 
       DbLoaderColumn value
    )

    Parameters

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

    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

    See Also