DB2®BulkCopyColumnMappingCollection.Remove Method

Removes the specified DB2BulkCopyColumnMapping from the DB2BulkCopyColumnMappingCollection.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Sub Remove ( _
          inValue As DB2BulkCopyColumnMapping _
)
[C#]
public void Remove(DB2BulkCopyColumnMapping inValue)
[C++]
public:
void Remove (DB2BulkCopyColumnMapping* inValue)
[JScript]
public function Remove (
          inValue : DB2BulkCopyColumnMapping
)

Parameters

inValue
The DB2BulkCopyColumnMapping object to be removed from the DB2BulkCopyColumnMappingCollection.

Remarks

If you need to perform multiple bulk copies, it would be more efficient to use a single DB2BulkCopy instance than to create a new instance for each bulk copy operation. When performing multiple bulk copy operations, use the Remove method to remove selected column mappings (after running the DB2BulkCopy.WriteToServer method for the previous operation) before defining new column mappings for the next bulk copy operation. You can also use the Clear method to remove all existing column mappings.