BlobBaseClient.StartCopyFromUri(Uri, IDictionary<String,String>, Nullable<AccessTier>, BlobRequestConditions, BlobRequestConditions, Nullable<RehydratePriority>, CancellationToken) Method

Definition

The StartCopyFromUri(Uri, IDictionary<String,String>, Nullable<AccessTier>, BlobRequestConditions, BlobRequestConditions, Nullable<RehydratePriority>, CancellationToken) operation copies data at from the source to this blob. You can check the CopyStatus returned from the GetProperties(BlobRequestConditions, CancellationToken) to determine if the copy has completed.

For more information, see .

public virtual Azure.Storage.Blobs.Models.CopyFromUriOperation StartCopyFromUri (Uri source, System.Collections.Generic.IDictionary<string,string> metadata = default, Azure.Storage.Blobs.Models.AccessTier? accessTier = default, Azure.Storage.Blobs.Models.BlobRequestConditions sourceConditions = default, Azure.Storage.Blobs.Models.BlobRequestConditions destinationConditions = default, Azure.Storage.Blobs.Models.RehydratePriority? rehydratePriority = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartCopyFromUri : Uri * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.Storage.Blobs.Models.AccessTier> * Azure.Storage.Blobs.Models.BlobRequestConditions * Azure.Storage.Blobs.Models.BlobRequestConditions * Nullable<Azure.Storage.Blobs.Models.RehydratePriority> * System.Threading.CancellationToken -> Azure.Storage.Blobs.Models.CopyFromUriOperation
override this.StartCopyFromUri : Uri * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.Storage.Blobs.Models.AccessTier> * Azure.Storage.Blobs.Models.BlobRequestConditions * Azure.Storage.Blobs.Models.BlobRequestConditions * Nullable<Azure.Storage.Blobs.Models.RehydratePriority> * System.Threading.CancellationToken -> Azure.Storage.Blobs.Models.CopyFromUriOperation
Public Overridable Function StartCopyFromUri (source As Uri, Optional metadata As IDictionary(Of String, String) = null, Optional accessTier As Nullable(Of AccessTier) = null, Optional sourceConditions As BlobRequestConditions = null, Optional destinationConditions As BlobRequestConditions = null, Optional rehydratePriority As Nullable(Of RehydratePriority) = null, Optional cancellationToken As CancellationToken = null) As CopyFromUriOperation

Parameters

source
Uri

Specifies the Uri of the source blob. The value may be a Uri of up to 2 KB in length that specifies a blob. A source blob in the same storage account can be authenticated via Shared Key. However, if the source is a blob in another account, the source blob must either be public or must be authenticated via a shared access signature. If the source blob is public, no authentication is required to perform the copy operation.

The source object may be a file in the Azure File service. If the source object is a file that is to be copied to a blob, then the source file must be authenticated using a shared access signature, whether it resides in the same account or in a different account.

metadata
IDictionary<String,String>

Optional custom metadata to set for this blob.

accessTier
Nullable<AccessTier>

Optional AccessTier Indicates the tier to be set on the blob.

sourceConditions
BlobRequestConditions

Optional BlobRequestConditions to add conditions on the copying of data from this source blob.

destinationConditions
BlobRequestConditions

Optional BlobRequestConditions to add conditions on the copying of data to this blob.

rehydratePriority
Nullable<RehydratePriority>

Optional RehydratePriority Indicates the priority with which to rehydrate an archived blob.

cancellationToken
CancellationToken

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

Returns

CopyFromUriOperation

A CopyFromUriOperation describing the state of the copy operation.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to