Share via


BlobUriBuilder Class

Definition

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 class BlobUriBuilder
type BlobUriBuilder = class
Public Class BlobUriBuilder
Inheritance
BlobUriBuilder

Constructors

BlobUriBuilder(Uri, Boolean)

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

BlobUriBuilder(Uri)

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

Properties

AccountName

Gets or sets the Azure Storage account name.

BlobContainerName

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

BlobName

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

Host

Gets or sets the Domain Name System (DNS) host name or IP address of a server.

Example: "account.blob.core.windows.net"

Port

Gets or sets the port number of the URI.

Query

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

Sas

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

Scheme

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

Snapshot

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

TrimBlobNameSlashes

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

VersionId

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

Methods

ToString()

Returns the display string for the specified BlobUriBuilder instance.

ToUri()

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

Applies to