Share via


BlobBaseClient.AbortCopyFromUri Method

Definition

The AbortCopyFromUri(String, BlobRequestConditions, CancellationToken) operation aborts a pending CopyFromUriOperation, and leaves a this blob with zero length and full metadata.

For more information, see Abort Copy Blob.

public virtual Azure.Response AbortCopyFromUri (string copyId, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AbortCopyFromUri : string * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response
override this.AbortCopyFromUri : string * Azure.Storage.Blobs.Models.BlobRequestConditions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function AbortCopyFromUri (copyId As String, Optional conditions As BlobRequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

copyId
String

ID of the copy operation to abort.

conditions
BlobRequestConditions

Optional BlobRequestConditions to add conditions on aborting the copy operation.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response on successfully aborting.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to