TransferManager.CopyAsync Method (CloudFile, CloudBlob, Boolean)

 

Updated: January 5, 2017

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

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

public static Task CopyAsync(
	CloudFile sourceFile,
	CloudBlob destBlob,
	bool isServiceCopy
)

Parameters

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

The CloudFile that is the source Azure file.

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

The CloudBlob that is the destination Azure blob.

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.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top
Show: