TransferManager.StartTransferAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.