TransferManager.CopyAsync Method (CloudBlob, CloudFile, Boolean, CopyOptions, SingleTransferContext)

 

Updated: January 5, 2017

Copy content, properties and metadata of an Azure blob to an Azure file.

Namespace:   Microsoft.WindowsAzure.Storage.DataMovement
Assembly:  Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)

public static Task CopyAsync(
	CloudBlob sourceBlob,
	CloudFile destFile,
	bool isServiceCopy,
	CopyOptions options,
	SingleTransferContext context
)

Parameters

sourceBlob
Type: Microsoft.WindowsAzure.Storage.Blob.CloudBlob

The CloudBlob that is the source Azure blob.

destFile
Type: Microsoft.WindowsAzure.Storage.File.CloudFile

The CloudFile that is the destination Azure file.

isServiceCopy
Type: System.Boolean

A flag indicating whether the copy is service-side asynchronous copy or not. If this flag is set to true, service-side asychronous copy will be used; if this flag is set to false, file is downloaded from source first, then uploaded to destination.

options
Type: Microsoft.WindowsAzure.Storage.DataMovement.CopyOptions

A CopyOptions object that specifies additional options for the operation.

context
Type: Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext

A TransferContext object that represents the context for the current operation.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top
Show: