CopyToAsync(OracleBlob, CancellationToken)
The CopyToAsync
method returns a Task-based asynchronous version of OracleBlob.CopyTo()
.
Declaration
// C# public async Task<Int64> CopyToAsync(OracleBlob obj, CancellationToken cancellationToken);
Parameters
-
obj
The
OracleBlob
object to which the data is 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. -
InvalidOperationException
- This exception is thrown if any of the following conditions exist:-
The
OracleConnection
is not open or has been closed during the lifetime of the object. -
The LOB object parameter has a different connection than the object.
-