Add(String, Int32) method

Creates a new SABulkCopyColumnMapping object using a column name to refer to the source column and a column ordinal to refer to the destination the column, and adds the mapping to the collection.

Creates a new column mapping, using column ordinals or names to refer to source and destination columns.

Syntax
Visual Basic

Public Function Add( _
   ByVal sourceColumn As String, _
   ByVal destinationColumnOrdinal As Integer _
) As SABulkCopyColumnMapping
C#

public SABulkCopyColumnMapping Add(
   string  sourceColumn,
   int destinationColumnOrdinal
);
Parameters
  • sourceColumn   The name of the source column within the data source.

  • destinationColumnOrdinal   The ordinal position of the destination column within the destination table.

Remarks

Restrictions: The SABulkCopyColumnMappingCollection class is not available in the .NET Compact Framework 2.0.

See also