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