<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.2" />

Microsoft.Azure.Storage.Blob.CloudBlobClient

public class CloudBlobClient
Provides a client-side logical representation of Microsoft Azure Blob storage.
public AuthenticationScheme AuthenticationScheme { get; set; }

Gets or sets the authentication scheme to use to sign HTTP requests.

public Uri BaseUri { get; }

Gets the base URI for the Blob service client at the primary location.

public IBufferManager BufferManager { get; set; }

Gets or sets a buffer manager that implements the IBufferManager interface, specifying a buffer pool for use with operations against the Blob service client.

public StorageCredentials Credentials { get; }

Gets the account credentials used to create the Blob service client.

public string DefaultDelimiter { get; set; }

Gets or sets the default delimiter that may be used to create a virtual directory structure of blobs.

Gets or sets the default request options for requests made via the Blob service client.

public IRetryPolicy RetryPolicy { get; set; }

Gets or sets the default retry policy for requests made via the Blob service client.

public StorageUri StorageUri { get; }

Gets the Blob service endpoints for both the primary and secondary locations.

public CloudBlobClient(Uri baseUri, DelegatingHandler delegatingHandler = null)

Initializes a new instance of the CloudBlobClient class using the specified Blob service endpoint and anonymous credentials.

public CloudBlobClient(Uri baseUri, StorageCredentials credentials, DelegatingHandler delegatingHandler = null)

Initializes a new instance of the CloudBlobClient class using the specified Blob service endpoint and account credentials.

public CloudBlobClient(StorageUri storageUri, StorageCredentials credentials, DelegatingHandler delegatingHandler = null)

Initializes a new instance of the CloudBlobClient class using the specified Blob service endpoint and account credentials.

public Task<IList<BlobBatchSubOperationResponse>> ExecuteBatchAsync(BatchOperation batchOperation, BlobRequestOptions requestOptions = null, OperationContext operationContext = null, CancellationToken cancellationToken = default)

Performs a batched operation request, returning the responses for each suboperation.

public virtual Task<AccountProperties> GetAccountPropertiesAsync()

Gets the properties of the blob service.

public virtual Task<AccountProperties> GetAccountPropertiesAsync(BlobRequestOptions options, OperationContext operationContext)

Gets the properties of the blob service.

public virtual Task<AccountProperties> GetAccountPropertiesAsync(BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Gets the properties of the blob service.

Gets a reference to a blob from the service.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(Uri blobUri, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Gets a reference to a blob from the service.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(StorageUri blobUri, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)

Gets a reference to a blob from the service.

public virtual Task<ICloudBlob> GetBlobReferenceFromServerAsync(StorageUri blobUri, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Gets a reference to a blob from the service.

public virtual CloudBlobContainer GetContainerReference(string containerName)

Returns a reference to a CloudBlobContainer object with the specified name.

Returns a reference to the root container.

public virtual Task<ServiceProperties> GetServicePropertiesAsync()

Gets the properties of the blob service.

public virtual Task<ServiceProperties> GetServicePropertiesAsync(BlobRequestOptions options, OperationContext operationContext)

Gets the properties of the blob service.

public virtual Task<ServiceProperties> GetServicePropertiesAsync(BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Gets the properties of the blob service.

public virtual Task<ServiceStats> GetServiceStatsAsync()

Gets service stats for the Blob service.

public virtual Task<ServiceStats> GetServiceStatsAsync(BlobRequestOptions options, OperationContext operationContext)

Gets service stats for the Blob service.

public virtual Task<ServiceStats> GetServiceStatsAsync(BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Gets service stats for the Blob service.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, BlobContinuationToken currentToken)

Returns a result segment containing a collection of blob items in the container.

public virtual Task<BlobResultSegment> ListBlobsSegmentedAsync(string prefix, bool useFlatBlobListing, BlobListingDetails blobListingDetails, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext)

Returns a result segment containing a collection of blob items in the container.

Returns a result segment containing a collection of containers.

Returns a result segment containing a collection of containers.

public virtual Task<ContainerResultSegment> ListContainersSegmentedAsync(string prefix, ContainerListingDetails detailsIncluded, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext)

Returns a result segment containing a collection of containers whose names begin with the specified prefix.

public virtual Task<ContainerResultSegment> ListContainersSegmentedAsync(string prefix, ContainerListingDetails detailsIncluded, int? maxResults, BlobContinuationToken currentToken, BlobRequestOptions options, OperationContext operationContext, CancellationToken cancellationToken)

Returns a result segment containing a collection of containers whose names begin with the specified prefix.

public virtual Task SetServicePropertiesAsync(ServiceProperties properties)

Gets the properties of the blob service.

public virtual Task SetServicePropertiesAsync(ServiceProperties properties, BlobRequestOptions requestOptions, OperationContext operationContext)

Gets the properties of the blob service.

public virtual Task SetServicePropertiesAsync(ServiceProperties properties, BlobRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)

Gets the properties of the blob service.