Share via


SqlBulkCopyColumnOrderHintCollection.Insert Method

Definition

Insert a new SqlBulkCopyColumnOrderHint at the index specified.

public:
 void Insert(int index, Microsoft::Data::SqlClient::SqlBulkCopyColumnOrderHint ^ columnOrderHint);
public void Insert (int index, Microsoft.Data.SqlClient.SqlBulkCopyColumnOrderHint columnOrderHint);
member this.Insert : int * Microsoft.Data.SqlClient.SqlBulkCopyColumnOrderHint -> unit
Public Sub Insert (index As Integer, columnOrderHint As SqlBulkCopyColumnOrderHint)

Parameters

index
Int32

Integer value of the location within the SqlBulkCopyColumnOrderHintCollection at which to insert the new SqlBulkCopyColumnOrderHint.

columnOrderHint
SqlBulkCopyColumnOrderHint

SqlBulkCopyColumnOrderHint object to be inserted in the collection.

Exceptions

The index is less than zero or greater than the size of the collection.

A null column order hint cannot be added to the collection.

Remarks

The order in which column order hints can be added is arbitrary.

Applies to