Export (0) Print
Expand All

OracleBFile.CopyTo Method (OracleLob, Int64)

Copies the entire contents of this OracleBFile to a destination OracleLob at the specified offset.

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

'Declaration
Public Function CopyTo ( _
	destination As OracleLob, _
	destinationOffset As Long _
) As Long
'Usage
Dim instance As OracleBFile
Dim destination As OracleLob
Dim destinationOffset As Long
Dim returnValue As Long

returnValue = instance.CopyTo(destination, destinationOffset)
public long CopyTo (
	OracleLob destination, 
	long destinationOffset
)
public function CopyTo (
	destination : OracleLob, 
	destinationOffset : long
) : long
Not applicable.

Parameters

destination

The destination OracleLob.

destinationOffset

The offset to which to copy.

Return Value

The number of bytes copied.

Exception typeCondition

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