Share via


BlobsStorageResourceProvider.FromBlobAsync Method

Definition

Creates a storage resource pointing towards the given container URI.

public System.Threading.Tasks.ValueTask<Azure.Storage.DataMovement.StorageResource> FromBlobAsync(Uri blobUri, Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions options = default, System.Threading.CancellationToken cancellationToken = default);
member this.FromBlobAsync : Uri * Azure.Storage.DataMovement.Blobs.BlobStorageResourceOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Azure.Storage.DataMovement.StorageResource>
Public Function FromBlobAsync (blobUri As Uri, Optional options As BlobStorageResourceOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of StorageResource)

Parameters

blobUri
Uri

Target location.

options
BlobStorageResourceOptions

Options for creating the storage resource. You may supply a BlobStorageResourceOptions, but you may also supply type-specific options instead:

When making a destination storage resource, the corresponding blob type of the options class will be used to determine the intended blob type of the destination. If only the base options type is provided, block blob will be the default used.
cancellationToken
CancellationToken

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

Returns

The configured storage resource.

Applies to