CopyToAsync(Int64, OracleClob, Int64, Int64)
This method returns a Task-based asynchronous version of OracleBFile.CopyTo()
, which copies data from the current instance to the provided object.
Declaration
// C# public Task<Int64> CopyToAsync(Int64 src_offset, OracleClob obj, Int64 dst_offset, Int64 amount)
Parameters
-
src_offset
- Theoffset
(in characters) in the current instance, from which the data is read. -
obj
- TheOracleClob
object to which the data is copied. -
dst_offset
- Theoffset
(in characters) at which theOracleClob
object is copied. -
amount
- The amount of data to be copied.
Return Value
Task<Int64>
object representing the asynchronous operation immediately without blocking the calling thread for the whole duration of the query execution.
Exceptions
-
ObjectDisposedException
- The object is already disposed. -
ArgumentOutOfRangeException
- Thesrc_offset
, thedst_offset
, or theamount
parameter is less than0
. -
InvalidOperationException
- The parameter has a different connection than the object,OracleConnection
is not opened, orOracleConnection
has been reopened.