<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />

SqlBulkCopyColumnMappingCollection

Collection of SqlBulkCopyColumnMapping objects that inherits from CollectionBase.
public int Count { get; }

public SqlBulkCopyColumnMapping this[int index] { get; }

Gets the SqlBulkCopyColumnMapping object at the specified index.

Adds the specified mapping to the SqlBulkCopyColumnMappingCollection.

public SqlBulkCopyColumnMapping Add(int sourceColumnIndex, int destinationColumnIndex)

Creates a new SqlBulkCopyColumnMapping and adds it to the collection, using ordinals to specify both source and destination columns.

public SqlBulkCopyColumnMapping Add(int sourceColumnIndex, string destinationColumn)

Creates a new SqlBulkCopyColumnMapping and adds it to the collection, using an ordinal for the source column and a string for the destination column.

public SqlBulkCopyColumnMapping Add(string sourceColumn, int destinationColumnIndex)

Creates a new SqlBulkCopyColumnMapping and adds it to the collection, using a column name to describe the source column and an ordinal to specify the destination column.

public SqlBulkCopyColumnMapping Add(string sourceColumn, string destinationColumn)

Creates a new SqlBulkCopyColumnMapping and adds it to the collection, using column names to specify both source and destination columns.

public void Clear()

Clears the contents of the collection.

Gets a value indicating whether a specified SqlBulkCopyColumnMapping object exists in the collection.

public void CopyTo(SqlBulkCopyColumnMapping[] array, int index)

Copies the elements of the SqlBulkCopyColumnMappingCollection to an array of SqlBulkCopyColumnMapping items, starting at a particular index.

Gets the index of the specified SqlBulkCopyColumnMapping object.

public void Insert(int index, SqlBulkCopyColumnMapping value)

Insert a new SqlBulkCopyColumnMapping at the index specified.

public void Remove(SqlBulkCopyColumnMapping value)

Removes the specified SqlBulkCopyColumnMapping element from the SqlBulkCopyColumnMappingCollection.

public void RemoveAt(int index)

Removes the mapping at the specified index from the collection.