OracleBFile.CopyTo 方法
定义
将数据从此 OracleBFile 复制到目标 OracleLob。Copies data from this OracleBFile to a destination OracleLob.
重载
| CopyTo(OracleLob) |
将此 OracleBFile 的全部内容复制到目标 OracleLob 的开始位置。Copies the entire contents of this OracleBFile to the beginning of a destination OracleLob. |
| CopyTo(OracleLob, Int64) |
将此 OracleBFile 的全部内容复制到目标 OracleLob 中指定的偏移位置。Copies the entire contents of this OracleBFile to a destination OracleLob at the specified offset. |
| CopyTo(Int64, OracleLob, Int64, Int64) |
通过指定数据数量、源偏移量和目标偏移量,从此 OracleBFile 复制到目标 OracleLob。Copies from this OracleBFile to a destination OracleLob with the specified amount of data, the source offset, and the destination offset. |
CopyTo(OracleLob)
将此 OracleBFile 的全部内容复制到目标 OracleLob 的开始位置。Copies the entire contents of this OracleBFile to the beginning of a destination OracleLob.
public:
long CopyTo(System::Data::OracleClient::OracleLob ^ destination);
public long CopyTo (System.Data.OracleClient.OracleLob destination);
member this.CopyTo : System.Data.OracleClient.OracleLob -> int64
override this.CopyTo : System.Data.OracleClient.OracleLob -> int64
Public Function CopyTo (destination As OracleLob) As Long
参数
返回
已复制的字节数。The number of bytes copied.
例外
目标 OracleLob 为空对象引用。The destination OracleLob is a null object reference.
该目标为空 OracleLob。The destination is a null OracleLob.
- 或 --or-
与该 OracleBFile 相关联的连接已关闭。The connection with which this OracleBFile is associated is closed.
已关闭或已释放 OracleBFile 对象。The OracleBFile object is closed or disposed.
注解
源和目标的基础数据类型 OracleBFile OracleLob 必须兼容。The underlying data types of the source OracleBFile and the destination OracleLob must be compatible. 例如,不能将二进制数据复制到 OracleLob 具有字符数据类型的目标。For example, you cannot copy binary data to a destination OracleLob that has a character data type.
您必须对目标具有写入访问权限, OracleLob CopyTo 操作才能正确执行。You must have write access to the destination OracleLob for the CopyTo operation to execute correctly.
适用于
CopyTo(OracleLob, Int64)
将此 OracleBFile 的全部内容复制到目标 OracleLob 中指定的偏移位置。Copies the entire contents of this OracleBFile to a destination OracleLob at the specified offset.
public:
long CopyTo(System::Data::OracleClient::OracleLob ^ destination, long destinationOffset);
public long CopyTo (System.Data.OracleClient.OracleLob destination, long destinationOffset);
member this.CopyTo : System.Data.OracleClient.OracleLob * int64 -> int64
override this.CopyTo : System.Data.OracleClient.OracleLob * int64 -> int64
Public Function CopyTo (destination As OracleLob, destinationOffset As Long) As Long
参数
- destinationOffset
- Int64
要复制到的偏移量。The offset to which to copy.
返回
已复制的字节数。The number of bytes copied.
例外
目标 OracleLob 为空对象引用。The destination OracleLob is a null object reference.
该目标为空 OracleLob。The destination is a null OracleLob.
- 或 --or-
与该 OracleBFile 相关联的连接已关闭。The connection with which this OracleBFile is associated is closed.
已关闭或已释放 OracleBFile 对象。The OracleBFile object is closed or disposed.
注解
源和目标的基础数据类型 OracleBFile OracleLob 必须兼容。The underlying data types of the source OracleBFile and the destination OracleLob must be compatible. 例如,不能将二进制数据复制到 OracleLob 具有字符数据类型的目标。For example, you cannot copy binary data to a destination OracleLob that has a character data type.
您必须对目标具有写入访问权限, OracleLob CopyTo 操作才能正确执行。You must have write access to the destination OracleLob for the CopyTo operation to execute correctly.
适用于
CopyTo(Int64, OracleLob, Int64, Int64)
通过指定数据数量、源偏移量和目标偏移量,从此 OracleBFile 复制到目标 OracleLob。Copies from this OracleBFile to a destination OracleLob with the specified amount of data, the source offset, and the destination offset.
public:
long CopyTo(long sourceOffset, System::Data::OracleClient::OracleLob ^ destination, long destinationOffset, long amount);
public long CopyTo (long sourceOffset, System.Data.OracleClient.OracleLob destination, long destinationOffset, long amount);
member this.CopyTo : int64 * System.Data.OracleClient.OracleLob * int64 * int64 -> int64
override this.CopyTo : int64 * System.Data.OracleClient.OracleLob * int64 * int64 -> int64
Public Function CopyTo (sourceOffset As Long, destination As OracleLob, destinationOffset As Long, amount As Long) As Long
参数
- sourceOffset
- Int64
要从中复制的偏移量。The offset from which to copy.
- destinationOffset
- Int64
要复制到的偏移量。The offset to which to copy.
- amount
- Int64
要复制的数据数量(以字节为单位)。The quantity of data, in bytes, to copy.
返回
已复制的字节数。The number of bytes copied.
例外
数量参数的值小于零或大于 4 GB。The value of the amount parameter is less than zero or greater than 4 gigabytes.
目标 OracleLob 为空对象引用。The destination OracleLob is a null object reference.
该目标为空 OracleLob。The destination is a null OracleLob.
- 或 --or-
与该 OracleBFile 相关联的连接已关闭。The connection with which this OracleBFile is associated is closed.
已关闭或已释放 OracleBFile 对象。The OracleBFile object is closed or disposed.
注解
源和目标的基础数据类型 OracleBFile OracleLob 必须兼容。The underlying data types of the source OracleBFile and the destination OracleLob must be compatible. 例如,不能将二进制数据复制到 OracleLob 具有字符数据类型的目标。For example, you cannot copy binary data to a destination OracleLob that has a character data type.
您必须对目标具有写入访问权限, OracleLob CopyTo 操作才能正确执行。You must have write access to the destination OracleLob for the CopyTo operation to execute correctly.