Share via


TransferManager.CopyAsync Method

Definition

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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 Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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 Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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 Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceUri
Uri

The Uri of the source file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destBlob
CloudBlob

The CloudBlob that is the destination Azure blob.

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

Azure SDK for .NET Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)

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);

Parameters

sourceBlob
CloudBlob

The CloudBlob that is the source Azure blob.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

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);

Parameters

sourceFile
CloudFile

The CloudFile that is the source Azure file.

destFile
CloudFile

The CloudFile that is the destination Azure file.

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 Latest
Product Versions (Obsolete)
Azure SDK for .NET (Latest)