dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleLob Class / CopyTo Method / CopyTo(Int64,OracleLob,Int64,Int64) Method
The offset from which to copy.
The destination OracleLob.
The offset to which to copy.
The quantity of data, in bytes, to copy.

In This Topic
CopyTo(Int64,OracleLob,Int64,Int64) Method
In This Topic
Copies data from this OracleLob to a destination OracleLob with the specified amount of data, source offset and destination offset.
Syntax
'Declaration
 
Public Overloads Function CopyTo( _
   ByVal srcOffset As Long, _
   ByVal dest As OracleLob, _
   ByVal destOffset As Long, _
   ByVal amount As Long _
) As Long
 

Parameters

srcOffset
The offset from which to copy.
dest
The destination OracleLob.
destOffset
The offset to which to copy.
amount
The quantity of data, in bytes, to copy.

Return Value

The number of bytes copied.
Remarks
The current and destination OracleLob objects must have the same data types.

If the destination offset is beyond the end of the LOB data, zeros are written into the OracleDbType.Blob and spaces into the OracleDbType.Clob and OracleDbType.NClob data types until the destination offset is met.

See Also