Share via


BlobLeaseClient Constructors

Definition

Overloads

BlobLeaseClient()

Initializes a new instance of the BlobLeaseClient class for mocking.

BlobLeaseClient(BlobContainerClient, String)

Initializes a new instance of the BlobLeaseClient class.

BlobLeaseClient(BlobBaseClient, String)

Initializes a new instance of the BlobLeaseClient class.

BlobLeaseClient()

Source:
BlobLeaseClient.cs
Source:
BlobLeaseClient.cs

Initializes a new instance of the BlobLeaseClient class for mocking.

protected BlobLeaseClient ();
Protected Sub New ()

Applies to

BlobLeaseClient(BlobContainerClient, String)

Source:
BlobLeaseClient.cs
Source:
BlobLeaseClient.cs

Initializes a new instance of the BlobLeaseClient class.

public BlobLeaseClient (Azure.Storage.Blobs.BlobContainerClient client, string leaseId = default);
new Azure.Storage.Blobs.Specialized.BlobLeaseClient : Azure.Storage.Blobs.BlobContainerClient * string -> Azure.Storage.Blobs.Specialized.BlobLeaseClient
Public Sub New (client As BlobContainerClient, Optional leaseId As String = Nothing)

Parameters

client
BlobContainerClient

A BlobContainerClient representing the blob container being leased.

leaseId
String

An optional lease ID. If no lease ID is provided, a random lease ID will be created.

Applies to

BlobLeaseClient(BlobBaseClient, String)

Source:
BlobLeaseClient.cs
Source:
BlobLeaseClient.cs

Initializes a new instance of the BlobLeaseClient class.

public BlobLeaseClient (Azure.Storage.Blobs.Specialized.BlobBaseClient client, string leaseId = default);
new Azure.Storage.Blobs.Specialized.BlobLeaseClient : Azure.Storage.Blobs.Specialized.BlobBaseClient * string -> Azure.Storage.Blobs.Specialized.BlobLeaseClient
Public Sub New (client As BlobBaseClient, Optional leaseId As String = Nothing)

Parameters

client
BlobBaseClient

A BlobClient representing the blob being leased.

leaseId
String

An optional lease ID. If no lease ID is provided, a random lease ID will be created.

Applies to