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
    public long CopyTo( 
       long srcOffset,
       OracleLob dest,
       long destOffset,
       long amount
    )

    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.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also