Class SpecializedBlobExtensions
Add easy to discover methods to BlobContainerClient for creating AppendBlobClient instances.
Namespace: Azure.Storage.Blobs.Specialized
Assembly: Azure.Storage.Blobs.dll
Syntax
public static class SpecializedBlobExtensions
Methods
GetAppendBlobClient(BlobContainerClient, String)
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.
Declaration
public static Azure.Storage.Blobs.Specialized.AppendBlobClient GetAppendBlobClient (this Azure.Storage.Blobs.BlobContainerClient client, string blobName);
Parameters
BlobContainerClient
client
The BlobContainerClient. |
String
blobName
The name of the append blob. |
Returns
AppendBlobClient
A new AppendBlobClient instance. |
GetBlobBaseClient(BlobContainerClient, String)
Create a new BlobClient object by concatenating
blobName
to the end of the
client
's Uri.
The new BlobClient uses the same request policy
pipeline as the BlobContainerClient.
Declaration
public static Azure.Storage.Blobs.Specialized.BlobBaseClient GetBlobBaseClient (this Azure.Storage.Blobs.BlobContainerClient client, string blobName);
Parameters
BlobContainerClient
client
The BlobContainerClient. |
String
blobName
The name of the blob. |
Returns
BlobBaseClient
A new BlobClient instance. |
GetBlobLeaseClient(BlobContainerClient, String)
Initializes a new instance of the BlobLeaseClient class.
Declaration
public static Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClient (this Azure.Storage.Blobs.BlobContainerClient client, string leaseId = null);
Parameters
BlobContainerClient
client
A BlobContainerClient representing the container being leased. |
String
leaseId
An optional lease ID. If no lease ID is provided, a random lease ID will be created. |
Returns
BlobLeaseClient
|
GetBlobLeaseClient(BlobBaseClient, String)
Initializes a new instance of the BlobLeaseClient class.
Declaration
public static Azure.Storage.Blobs.Specialized.BlobLeaseClient GetBlobLeaseClient (this Azure.Storage.Blobs.Specialized.BlobBaseClient client, string leaseId = null);
Parameters
BlobBaseClient
client
A BlobClient representing the blob being leased. |
String
leaseId
An optional lease ID. If no lease ID is provided, a random lease ID will be created. |
Returns
BlobLeaseClient
|
GetBlockBlobClient(BlobContainerClient, String)
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.
Declaration
public static Azure.Storage.Blobs.Specialized.BlockBlobClient GetBlockBlobClient (this Azure.Storage.Blobs.BlobContainerClient client, string blobName);
Parameters
BlobContainerClient
client
The BlobContainerClient. |
String
blobName
The name of the append blob. |
Returns
BlockBlobClient
A new BlockBlobClient instance. |
GetPageBlobClient(BlobContainerClient, String)
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.
Declaration
public static Azure.Storage.Blobs.Specialized.PageBlobClient GetPageBlobClient (this Azure.Storage.Blobs.BlobContainerClient client, string blobName);
Parameters
BlobContainerClient
client
The BlobContainerClient. |
String
blobName
The name of the page blob. |
Returns
PageBlobClient
A new PageBlobClient instance. |