Click or drag to resize

TransferManagerCopyAsync Method (CloudFile, CloudBlob, Boolean, CopyOptions, SingleTransferContext)

Note: This API is now obsolete.

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

Namespace:  Microsoft.Azure.Storage.DataMovement
Assembly:  Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
[ObsoleteAttribute("Replaced by overload that takes CopyMethod", false)]
public static Task CopyAsync(
	CloudFile sourceFile,
	CloudBlob destBlob,
	bool isServiceCopy,
	CopyOptions options,
	SingleTransferContext context
)

Parameters

sourceFile
Type: CloudFile
The CloudFile that is the source Azure file.
destBlob
Type: CloudBlob
The CloudBlob that is the destination Azure blob.
isServiceCopy
Type: SystemBoolean
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.Azure.Storage.DataMovementCopyOptions
A CopyOptions object that specifies additional options for the operation.
context
Type: Microsoft.Azure.Storage.DataMovementSingleTransferContext
A SingleTransferContext object that represents the context for the current operation.

Return Value

Type: Task
A Task object that represents the asynchronous operation.
See Also