public virtual bool CancelCopy(string destBlobName, string copyId) { // Fetch the destination blob's properties before checking the copy state. BlobClient destinationBlobClient = GetBlobClient(destBlobName); BlobProperties destinationBlobProperties = destinationBlobClient.GetProperties().Value; // Check the copy status. If it is still pending, abort the copy operation. if (destinationBlobProperties.CopyStatus == CopyStatus.Pending) { destinationBlobClient.AbortCopyFromUri(copyId); Debug.WriteLine("Copy operation {0} has been aborted.", copyId); return(true); } return(false); }