Share via


BlobBaseClient.GetUriWithSas(BlobBaseClient) Method

Definition

Get the Uri with SAS appended if the BlobBaseClient has an AzureSasCredential, for use as the source URI when performing service to service copy where the client was initialized with an AzureSasCredential.

To retrieve, please utilize the BlobUriBuilder. To inspect the SAS token (after parsed) utilize the SasQueryParameters or BlobSasQueryParameters.

protected static Uri GetUriWithSas(Azure.Storage.Blobs.Specialized.BlobBaseClient client);
static member GetUriWithSas : Azure.Storage.Blobs.Specialized.BlobBaseClient -> Uri
Protected Shared Function GetUriWithSas (client As BlobBaseClient) As Uri

Parameters

client
BlobBaseClient

The storage client from which to retrieve the URI and SAS credential.

Returns

Uri

The URI with SAS appended if the client has an AzureSasCredential; otherwise, the original URI.

Applies to