DataColumnCollectionInsert(DataColumn, DataColumnCollectionDataColumnInfo, Int32, Boolean) Method |
Inserts multiple DataColumns into the collection at index nDestinationIndex. The caller must garantuee, that the names are not already be present,
or the argument renameColumnsIfNecessary must be set to true!
Namespace: Altaxo.DataAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax protected void Insert(
DataColumn[] columns,
DataColumnCollectionDataColumnInfo[] info,
int nDestinationIndex,
bool renameColumnsIfNecessary
)
Parameters
- columns DataColumn
- The array of data columns to insert.
- info DataColumnCollectionDataColumnInfo
- The corresponding column information for the columns to insert.
- nDestinationIndex Int32
- The index into the collection where the columns are inserted.
- renameColumnsIfNecessary Boolean
- If set to true, the columns to insert are automatically renamed if already be present in the destination collection. If false,
an exception is thrown if a column with the same name is already be present in the destination table.
See Also