<PackageReference Include="Azure.Storage.Blobs" Version="12.24.0" />

BlobUriBuilder

public class BlobUriBuilder
The BlobUriBuilder class provides a convenient way to modify the contents of a Uri instance to point to different Azure Storage resources like an account, container, or blob. For more information, see Naming and Referencing Containers, Blobs, and Metadata.
public string AccountName { get; set; }

Gets or sets the Azure Storage account name.

public string BlobContainerName { get; set; }

Gets or sets the name of a blob storage Container. The value defaults to Empty if not present in the Uri.

public string BlobName { get; set; }

Gets or sets the name of a blob. The value defaults to Empty if not present in the Uri.

public string Host { get; set; }

Gets or sets the Domain Name System (DNS) host name or IP address of a server. Example: "account.blob.core.windows.net"

public int Port { get; set; }

Gets or sets the port number of the URI.

public string Query { get; set; }

Gets or sets any query information included in the URI that's not relevant to addressing Azure storage resources.

public BlobSasQueryParameters Sas { get; set; }

Gets or sets the Shared Access Signature query parameters, or null if not present in the Uri.

public string Scheme { get; set; }

Gets or sets the scheme name of the URI. Example: "https"

public string Snapshot { get; set; }

Gets or sets the name of a blob snapshot. The value defaults to Empty if not present in the Uri.

public bool TrimBlobNameSlashes { get; }

Whether to trim leading and trailing '/' characters on blob names when constructing a URI with this instance.

public string VersionId { get; set; }

Gets or sets the name of a blob version. The value defaults to Empty if not present in the Uri.

public BlobUriBuilder(Uri uri)

Initializes a new instance of the BlobUriBuilder class with the specified Uri.

public BlobUriBuilder(Uri uri, bool trimBlobNameSlashes)

Initializes a new instance of the BlobUriBuilder class with the specified Uri.

public Uri ToUri()

Returns the Uri constructed from the BlobUriBuilder's fields. The Query property contains the SAS and additional query parameters.