Share via


ShareFileClient.GetUriWithSas(ShareFileClient) Method

Definition

Get the Uri with SAS appended if the ShareFileClient 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 ShareUriBuilder. To inspect the SAS token (after parsed) utilize the SasQueryParameters or ShareSasQueryParameters.

protected static Uri GetUriWithSas(Azure.Storage.Files.Shares.ShareFileClient client);
static member GetUriWithSas : Azure.Storage.Files.Shares.ShareFileClient -> Uri
Protected Shared Function GetUriWithSas (client As ShareFileClient) As Uri

Parameters

client
ShareFileClient

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