OssClientCopyBigObject Method |
已废弃,请使用ResumableCopyObject。
拷贝指定的大文件:
OssObject到指定的
Bucket。
如果拷贝的文件大小小于或等于分片大小,则会使用普通拷贝,只需拷贝一次即可。
如果拷贝文件大小大于分片大小,则会使用分片拷贝。
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntaxpublic CopyObjectResult CopyBigObject(
CopyObjectRequest copyObjectRequest,
Nullable<long> partSize = null,
string checkpointDir = null
)
Public Function CopyBigObject (
copyObjectRequest As CopyObjectRequest,
Optional partSize As Nullable(Of Long) = Nothing,
Optional checkpointDir As String = Nothing
) As CopyObjectResult
public:
virtual CopyObjectResult^ CopyBigObject(
CopyObjectRequest^ copyObjectRequest,
Nullable<long long> partSize = nullptr,
String^ checkpointDir = nullptr
) sealed
abstract CopyBigObject :
copyObjectRequest : CopyObjectRequest *
?partSize : Nullable<int64> *
?checkpointDir : string
(* Defaults:
let _partSize = defaultArg partSize null
let _checkpointDir = defaultArg checkpointDir null
*)
-> CopyObjectResult
override CopyBigObject :
copyObjectRequest : CopyObjectRequest *
?partSize : Nullable<int64> *
?checkpointDir : string
(* Defaults:
let _partSize = defaultArg partSize null
let _checkpointDir = defaultArg checkpointDir null
*)
-> CopyObjectResult
Parameters
- copyObjectRequest
- Type: Aliyun.OSSCopyObjectRequest
请求对象 - partSize (Optional)
- Type: SystemNullableInt64
分片大小,如果用户不指定,则使用DefaultPartSize。
如果用户指定的partSize小于PartSizeLowerLimit,这会调整到PartSizeLowerLimit - checkpointDir (Optional)
- Type: SystemString
保存断点续传中间状态文件的目录,如果指定了,则具有断点续传功能,否则每次都会重新拷贝
Return Value
Type:
CopyObjectResultCopyObjectResult实例。
Implements
IOssCopyBigObject(CopyObjectRequest, NullableInt64, String)
See Also