<PackageReference Include="Azure.Storage.Blobs" Version="12.25.0-beta.1" />

SpecializedBlobExtensions

public static class SpecializedBlobExtensions
Add easy to discover methods to BlobContainerClient for creating AppendBlobClient instances.
public static AppendBlobClient GetAppendBlobClient(this BlobContainerClient client, string blobName)

Create a new AppendBlobClient object by concatenating blobName to the end of the client's Uri. The new AppendBlobClient uses the same request policy pipeline as the BlobContainerClient.

public static BlobBaseClient GetBlobBaseClient(this BlobContainerClient client, string blobName)

Create a new BlobBaseClient object by concatenating blobName to the end of the client's Uri. The new BlobBaseClient uses the same request policy pipeline as the BlobContainerClient.

public static BlobLeaseClient GetBlobLeaseClient(this BlobBaseClient client, string leaseId = null)

Initializes a new instance of the BlobLeaseClient class.

public static BlobLeaseClient GetBlobLeaseClient(this BlobContainerClient client, string leaseId = null)

Initializes a new instance of the BlobLeaseClient class.

public static BlockBlobClient GetBlockBlobClient(this BlobContainerClient client, string blobName)

Create a new BlockBlobClient object by concatenating blobName to the end of the client's Uri. The new BlockBlobClient uses the same request policy pipeline as the BlobContainerClient.

public static PageBlobClient GetPageBlobClient(this BlobContainerClient client, string blobName)

Create a new PageBlobClient object by concatenating blobName to the end of the client's Uri. The new PageBlobClient uses the same request policy pipeline as the BlobContainerClient.

Create a new BlobContainerClient that pointing to this BlobBaseClient's parent container. The new BlockBlobClient uses the same request policy pipeline as the BlobBaseClient.

Create a new BlobServiceClient that pointing to this BlobContainerClient's blob service. The new BlobServiceClient uses the same request policy pipeline as the BlobContainerClient.

public static void UpdateClientSideKeyEncryptionKey(this BlobClient client, ClientSideEncryptionOptions encryptionOptionsOverride = null, BlobRequestConditions conditions = null, CancellationToken cancellationToken = default)

Rotates the Key Encryption Key (KEK) for a client-side encrypted blob without needing to reupload the entire blob.

public static Task UpdateClientSideKeyEncryptionKeyAsync(this BlobClient client, ClientSideEncryptionOptions encryptionOptionsOverride = null, BlobRequestConditions conditions = null, CancellationToken cancellationToken = default)

Rotates the Key Encryption Key (KEK) for a client-side encrypted blob without needing to reupload the entire blob.

public static BlobClient WithClientSideEncryptionOptions(this BlobClient client, ClientSideEncryptionOptions clientSideEncryptionOptions)

Creates a new instance of the BlobClient class, maintaining all the same internals but specifying new ClientSideEncryptionOptions.