OracleBulkCopy(OracleConnection, OracleBulkCopyOptions)
This constructor instantiates a new instance of OracleBulkCopy using the specified connection object and OracleBulkCopyOptions value.
Declaration
// C# public OracleBulkCopy(OracleConnection connection, OracleBulkCopyOptions copyOptions);
Parameters
-
connectionThe open instance of an
OracleConnectionobject that performs the bulk copy operation. -
copyOptionsThe combination of
OracleBulkCopyOptionsenumeration values that determine the behavior of theOracleBulkCopyobject.
Exceptions
ArgumentNullException - The connection parameter is null.
InvalidOperationException - The connection is not in the open state.
Remarks
The connection passed to this constructor must be open. It remains open after the OracleBulkCopy instance is closed.
The Connection property is set to the supplied connection.