TransferManagerCopyAsync Method (Uri, CloudBlob, Boolean) |
Copy file from an specified URI 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 public static Task CopyAsync(
Uri sourceUri,
CloudBlob destBlob,
bool isServiceCopy
)
Public Shared Function CopyAsync (
sourceUri As Uri,
destBlob As CloudBlob,
isServiceCopy As Boolean
) As Task
public:
static Task^ CopyAsync(
Uri^ sourceUri,
CloudBlob^ destBlob,
bool isServiceCopy
)
static member CopyAsync :
sourceUri : Uri *
destBlob : CloudBlob *
isServiceCopy : bool -> Task
Parameters
- sourceUri
- Type: SystemUri
The Uri of the source 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.
Return Value
Type:
TaskA
Task object that represents the asynchronous operation.
Remarks Copying from an URI to Azure blob synchronously is not supported yet.
See Also