Export (0) Print
Expand All

OracleBFile.CopyTo Method (Int64, OracleLob, Int64, Int64)

Copies from this OracleBFile to a destination OracleLob with the specified amount of data, the source offset, and the destination offset.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in system.data.oracleclient.dll)

public long CopyTo (
	long sourceOffset,
	OracleLob destination,
	long destinationOffset,
	long amount
)
public long CopyTo (
	long sourceOffset, 
	OracleLob destination, 
	long destinationOffset, 
	long amount
)
public function CopyTo (
	sourceOffset : long, 
	destination : OracleLob, 
	destinationOffset : long, 
	amount : long
) : long
Not applicable.

Parameters

sourceOffset

The offset from which to copy.

destination

The destination OracleLob.

destinationOffset

The offset to which to copy.

amount

The quantity of data, in bytes, to copy.

Return Value

The number of bytes copied.

Exception typeCondition

ArgumentOutOfRangeException

The value of the amount parameter is less than zero or greater than 4 gigabytes.

ArgumentNullException

The destination OracleLob is a null object reference.

InvalidOperationException

The destination is a null OracleLob.

-or-

The connection with which this OracleBFile is associated is closed.

ObjectDisposedException

The OracleBFile object is closed or disposed.

The underlying data types of the source OracleBFile and the destination OracleLob must be compatible. For example, you cannot copy binary data to a destination OracleLob that has a character data type.

You must have write access to the destination OracleLob for the CopyTo operation to execute correctly.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft