CopyToAsync(OracleClob, Int64)

This method returns a Task-based asynchronous version of OracleClob.CopyTo(), which copies data from the current instance to the provided OracleClob object.

Declaration

// C#
public async Task<Int64> CopyToAsync(OracleClob obj, Int64 dst_offset)

Parameters

  • obj

    The OracleClob object to which the data is copied.

  • dst_offset

    The offset (in characters) at which the OracleClob object is 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 - The dst_offset is less than 0.

  • 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.