| TransferManagerCopyAsync Method (Uri, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken) | 
 
            Copy file from an specified URI to an Azure file.
            
 
    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
Syntaxpublic static Task CopyAsync(
	Uri sourceUri,
	CloudFile destFile,
	bool isServiceCopy,
	CopyOptions options,
	SingleTransferContext context,
	CancellationToken cancellationToken
)
Public Shared Function CopyAsync ( 
	sourceUri As Uri,
	destFile As CloudFile,
	isServiceCopy As Boolean,
	options As CopyOptions,
	context As SingleTransferContext,
	cancellationToken As CancellationToken
) As Task
public:
static Task^ CopyAsync(
	Uri^ sourceUri, 
	CloudFile^ destFile, 
	bool isServiceCopy, 
	CopyOptions^ options, 
	SingleTransferContext^ context, 
	CancellationToken cancellationToken
)
static member CopyAsync : 
        sourceUri : Uri * 
        destFile : CloudFile * 
        isServiceCopy : bool * 
        options : CopyOptions * 
        context : SingleTransferContext * 
        cancellationToken : CancellationToken -> Task 
Parameters
- sourceUri
- Type: SystemUri
 The Uri of the source file.
- destFile
- Type: CloudFile
 The CloudFile that is the destination Azure file.
- 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.
- cancellationToken
- Type: System.ThreadingCancellationToken
 A CancellationToken object to observe while waiting for a task to complete.
Return Value
Type: 
TaskA 
Task object that represents the asynchronous operation.
 Remarks
RemarksCopying from an URI to Azure file synchronously is not supported yet.
 See Also
See Also