TransferManager.CopyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CopyAsync(Uri, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Copy file from an specified URI to an Azure file. |
CopyAsync(Uri, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Copy file from an specified URI to an Azure blob. |
CopyAsync(CloudFile, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Obsolete.
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(CloudFile, CloudFile, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken) |
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(CloudFile, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Obsolete.
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(CloudFile, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken) |
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(CloudBlob, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Obsolete.
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudBlob, CloudFile, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken) |
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudBlob, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken) |
Obsolete.
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(CloudBlob, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken) |
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(Uri, CloudFile, Boolean, CopyOptions, SingleTransferContext) |
Copy file from an specified URI to an Azure file. |
CopyAsync(Uri, CloudBlob, Boolean, CopyOptions, SingleTransferContext) |
Copy file from an specified URI to an Azure blob. |
CopyAsync(CloudFile, CloudFile, CopyMethod, CopyOptions, SingleTransferContext) |
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(CloudFile, CloudBlob, Boolean, CopyOptions, SingleTransferContext) |
Obsolete.
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(CloudFile, CloudFile, Boolean, CopyOptions, SingleTransferContext) |
Obsolete.
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(CloudBlob, CloudFile, Boolean, CopyOptions, SingleTransferContext) |
Obsolete.
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudBlob, CloudBlob, CopyMethod) |
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(CloudBlob, CloudBlob, Boolean) |
Obsolete.
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(CloudBlob, CloudFile, CopyMethod) |
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudBlob, CloudFile, Boolean) |
Obsolete.
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudFile, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext) |
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(CloudFile, CloudBlob, Boolean) |
Obsolete.
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(CloudFile, CloudFile, CopyMethod) |
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(CloudFile, CloudBlob, CopyMethod) |
Copy content, properties and metadata of an Azure file to an Azure blob. |
CopyAsync(Uri, CloudBlob, Boolean) |
Copy file from an specified URI to an Azure blob. |
CopyAsync(Uri, CloudFile, Boolean) |
Copy file from an specified URI to an Azure file. |
CopyAsync(CloudBlob, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext) |
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(CloudBlob, CloudBlob, Boolean, CopyOptions, SingleTransferContext) |
Obsolete.
Copy content, properties and metadata of one Azure blob to another. |
CopyAsync(CloudBlob, CloudFile, CopyMethod, CopyOptions, SingleTransferContext) |
Copy content, properties and metadata of an Azure blob to an Azure file. |
CopyAsync(CloudFile, CloudFile, Boolean) |
Obsolete.
Copy content, properties and metadata of an Azure file to another. |
CopyAsync(Uri, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Copy file from an specified URI to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Uri * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure file synchronously is not supported yet.
Applies to
CopyAsync(Uri, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Copy file from an specified URI to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Uri * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure blob synchronously is not supported yet.
Applies to
CopyAsync(CloudFile, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudFile, CloudFile, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken)
Copy content, properties and metadata of an Azure file to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudFile, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to an Azure blob.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudFile, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken)
Copy content, properties and metadata of an Azure file to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudBlob, CloudFile, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure blob to an Azure file.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudFile, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken)
Copy content, properties and metadata of an Azure blob to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudBlob, CloudBlob, Boolean, CopyOptions, SingleTransferContext, CancellationToken)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of one Azure blob to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext, CancellationToken)
Copy content, properties and metadata of one Azure blob to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context, System.Threading.CancellationToken cancellationToken);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext, cancellationToken As CancellationToken) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken object to observe while waiting for a task to complete.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(Uri, CloudFile, Boolean, CopyOptions, SingleTransferContext)
Copy file from an specified URI to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Uri * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure file synchronously is not supported yet.
Applies to
CopyAsync(Uri, CloudBlob, Boolean, CopyOptions, SingleTransferContext)
Copy file from an specified URI to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Uri * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure blob synchronously is not supported yet.
Applies to
CopyAsync(CloudFile, CloudFile, CopyMethod, CopyOptions, SingleTransferContext)
Copy content, properties and metadata of an Azure file to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudFile, CloudBlob, Boolean, CopyOptions, SingleTransferContext)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to an Azure blob.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudFile, CloudFile, Boolean, CopyOptions, SingleTransferContext)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudFile, Boolean, CopyOptions, SingleTransferContext)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure blob to an Azure file.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A TransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudBlob, CopyMethod)
Copy content, properties and metadata of one Azure blob to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, copyMethod As CopyMethod) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudBlob, CloudBlob, Boolean)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of one Azure blob to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudFile, CopyMethod)
Copy content, properties and metadata of an Azure blob to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, copyMethod As CopyMethod) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudBlob, CloudFile, Boolean)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure blob to an Azure file.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudFile, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext)
Copy content, properties and metadata of an Azure file to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudFile, CloudBlob, Boolean)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to an Azure blob.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudFile, CloudFile, CopyMethod)
Copy content, properties and metadata of an Azure file to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, copyMethod As CopyMethod) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudFile, CloudBlob, CopyMethod)
Copy content, properties and metadata of an Azure file to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod);
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destBlob As CloudBlob, copyMethod As CopyMethod) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(Uri, CloudBlob, Boolean)
Copy file from an specified URI to an Azure blob.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy);
static member CopyAsync : Uri * Microsoft.Azure.Storage.Blob.CloudBlob * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destBlob As CloudBlob, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure blob synchronously is not supported yet.
Applies to
CopyAsync(Uri, CloudFile, Boolean)
Copy file from an specified URI to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Uri sourceUri, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy);
static member CopyAsync : Uri * Microsoft.Azure.Storage.File.CloudFile * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceUri As Uri, destFile As CloudFile, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
Remarks
Copying from an URI to Azure file synchronously is not supported yet.
Applies to
CopyAsync(CloudBlob, CloudBlob, CopyMethod, CopyOptions, SingleTransferContext)
Copy content, properties and metadata of one Azure blob to another.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudBlob, CloudBlob, Boolean, CopyOptions, SingleTransferContext)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of one Azure blob to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.Blob.CloudBlob destBlob, bool isServiceCopy, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.Blob.CloudBlob * bool * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destBlob As CloudBlob, isServiceCopy As Boolean, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- isServiceCopy
- 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
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
CopyAsync(CloudBlob, CloudFile, CopyMethod, CopyOptions, SingleTransferContext)
Copy content, properties and metadata of an Azure blob to an Azure file.
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.Blob.CloudBlob sourceBlob, Microsoft.Azure.Storage.File.CloudFile destFile, Microsoft.Azure.Storage.DataMovement.CopyMethod copyMethod, Microsoft.Azure.Storage.DataMovement.CopyOptions options, Microsoft.Azure.Storage.DataMovement.SingleTransferContext context);
static member CopyAsync : Microsoft.Azure.Storage.Blob.CloudBlob * Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.DataMovement.CopyMethod * Microsoft.Azure.Storage.DataMovement.CopyOptions * Microsoft.Azure.Storage.DataMovement.SingleTransferContext -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceBlob As CloudBlob, destFile As CloudFile, copyMethod As CopyMethod, options As CopyOptions, context As SingleTransferContext) As Task
Parameters
- copyMethod
- CopyMethod
A flag indicating how the copying operation is handled in DataMovement Library. See definition of CopyMethod for more details on how copying operation will be handled.
- options
- CopyOptions
A CopyOptions object that specifies additional options for the operation.
- context
- SingleTransferContext
A TransferContext object that represents the context for the current operation.
Returns
A Task object that represents the asynchronous operation.
Applies to
CopyAsync(CloudFile, CloudFile, Boolean)
Caution
Replaced by overload that takes CopyMethod
Copy content, properties and metadata of an Azure file to another.
[System.Obsolete("Replaced by overload that takes CopyMethod", false)]
public static System.Threading.Tasks.Task CopyAsync (Microsoft.Azure.Storage.File.CloudFile sourceFile, Microsoft.Azure.Storage.File.CloudFile destFile, bool isServiceCopy);
[<System.Obsolete("Replaced by overload that takes CopyMethod", false)>]
static member CopyAsync : Microsoft.Azure.Storage.File.CloudFile * Microsoft.Azure.Storage.File.CloudFile * bool -> System.Threading.Tasks.Task
Public Shared Function CopyAsync (sourceFile As CloudFile, destFile As CloudFile, isServiceCopy As Boolean) As Task
Parameters
- isServiceCopy
- 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.
Returns
A Task object that represents the asynchronous operation.
- Attributes
Applies to
Azure SDK for .NET