CloudBlob.StartCopyAsync Method

Definition

Overloads

StartCopyAsync(Uri)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

StartCopyAsync(Uri, CancellationToken)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

StartCopyAsync(Uri, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

StartCopyAsync(Uri, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

StartCopyAsync(Uri)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> StartCopyAsync (Uri source);
abstract member StartCopyAsync : Uri -> System.Threading.Tasks.Task<string>
override this.StartCopyAsync : Uri -> System.Threading.Tasks.Task<string>
Public Overridable Function StartCopyAsync (source As Uri) As Task(Of String)

Parameters

source
Uri

The Uri of the source blob.

Returns

Task<String>

A Task<TResult> object of type string that represents the asynchronous operation.

Attributes

Applies to

Product Introduced

StartCopyAsync(Uri, CancellationToken)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> StartCopyAsync (Uri source, System.Threading.CancellationToken cancellationToken);
abstract member StartCopyAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.StartCopyAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>

Parameters

source
Uri

The Uri of the source blob.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

Task<String>

A Task<TResult> object of type string that represents the asynchronous operation.

Attributes

Applies to

Product Introduced

StartCopyAsync(Uri, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> StartCopyAsync (Uri source, Microsoft.WindowsAzure.Storage.AccessCondition sourceAccessCondition, Microsoft.WindowsAzure.Storage.AccessCondition destAccessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
abstract member StartCopyAsync : Uri * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<string>
override this.StartCopyAsync : Uri * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> System.Threading.Tasks.Task<string>

Parameters

source
Uri

The Uri of the source blob.

sourceAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the source blob. If null, no condition is used.

destAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the destination blob. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

Task<String>

A Task<TResult> object of type string that represents the asynchronous operation.

Attributes

Applies to

Product Introduced

StartCopyAsync(Uri, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation to start copying another blob's contents, properties, and metadata to this blob.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<string> StartCopyAsync (Uri source, Microsoft.WindowsAzure.Storage.AccessCondition sourceAccessCondition, Microsoft.WindowsAzure.Storage.AccessCondition destAccessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member StartCopyAsync : Uri * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.StartCopyAsync : Uri * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>

Parameters

source
Uri

The Uri of the source blob.

sourceAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the source blob. If null, no condition is used.

destAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the destination blob. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

Task<String>

A Task<TResult> object of type string that represents the asynchronous operation.

Attributes

Applies to

Product Introduced