次の方法で共有


StorageResourceItem.CopyBlockFromUriAsync Method

Definition

Uploads/copy the blob from a url

protected internal abstract System.Threading.Tasks.Task CopyBlockFromUriAsync (Azure.Storage.DataMovement.StorageResourceItem sourceResource, Azure.HttpRange range, bool overwrite, long completeLength, Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CopyBlockFromUriAsync : Azure.Storage.DataMovement.StorageResourceItem * Azure.HttpRange * bool * int64 * Azure.Storage.DataMovement.StorageResourceCopyFromUriOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Friend MustOverride Function CopyBlockFromUriAsync (sourceResource As StorageResourceItem, range As HttpRange, overwrite As Boolean, completeLength As Long, Optional options As StorageResourceCopyFromUriOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

sourceResource
StorageResourceItem
range
HttpRange
overwrite
Boolean

If set to true, will overwrite the blob if exists.

completeLength
Int64

The expected complete length of the blob.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

Applies to