共用方式為


TransferManager.StartTransferAsync Method

Definition

Starts a transfer from the given source resource to the given destination resource.

public virtual System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer> StartTransferAsync (Azure.Storage.DataMovement.StorageResource sourceResource, Azure.Storage.DataMovement.StorageResource destinationResource, Azure.Storage.DataMovement.DataTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartTransferAsync : Azure.Storage.DataMovement.StorageResource * Azure.Storage.DataMovement.StorageResource * Azure.Storage.DataMovement.DataTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer>
override this.StartTransferAsync : Azure.Storage.DataMovement.StorageResource * Azure.Storage.DataMovement.StorageResource * Azure.Storage.DataMovement.DataTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Storage.DataMovement.DataTransfer>
Public Overridable Function StartTransferAsync (sourceResource As StorageResource, destinationResource As StorageResource, Optional transferOptions As DataTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataTransfer)

Parameters

sourceResource
StorageResource

A StorageResource representing the source.

destinationResource
StorageResource

A StorageResource representing the destination.

transferOptions
DataTransferOptions

Options specific to this transfer.

cancellationToken
CancellationToken

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

Returns

Returns a DataTransfer for tracking this transfer.

Applies to