CopyToAsync(Int64, OracleBlob, Int64, Int64, CancellationToken)
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, OracleBlob obj, Int64 dst_offset, Int64 amount, CancellationToken cancellationToken)
Parameters
-
src_offset- Theoffset(in bytes) in the current instance, from which the data is read. -
obj- TheOracleBlobobject to which the data is copied. -
dst_offset- Theoffset(in bytes) at which theOracleBlobobject is copied. -
amount- The amount of data to be copied. -
cancellationToken- The input cancellation token which can be used by the application to cancel the task.
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 theamountparameter is less than0. -
InvalidOperationException- This exception is thrown if any of the following conditions exist:-
The
OracleConnectionis not open or has been closed during the lifetime of the object. -
The
LOBobject parameter has a different connection than the object.
-