WriteAsync(byte[], int, int)
The WriteAsync method returns a Task-based asynchronous version of OracleBlob.Write().
Declaration
// C# public Task WriteAsync(byte[] buffer, int offset, int count);
Parameters
-
bufferThe byte array buffer that provides the data.
-
offsetThe 0-based offset (in bytes) from which the buffer is read.
-
countThe amount of data (in bytes) that is to be written into the
OracleBlob.
Return Value
Task 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- TheOracleConnectionis not open or has been closed during the lifetime of the object-
ArgumentOutOfRangeException- This exception is thrown if any of the following conditions exist:-
The offset or the count parameter is less than 0.
-
The offset is greater than or equal to the
buffer.Length. -
The offset and the count together are greater than the
buffer.Length.
-
Remark
This will call into the WriteAsync implementation with argument cancellationToken passed as CancellationToken.None.