DataLakeLeaseClientExtensions.GetDataLakeLeaseClient Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

GetDataLakeLeaseClient(DataLakeFileSystemClient, String)

Source:
DataLakeLeaseClientExtensions.cs
Source:
DataLakeLeaseClientExtensions.cs

Initializes a new instance of the DataLakeLeaseClient class.

C#
public static Azure.Storage.Files.DataLake.DataLakeLeaseClient GetDataLakeLeaseClient(this Azure.Storage.Files.DataLake.DataLakeFileSystemClient client, string leaseId = default);

Parameters

client
DataLakeFileSystemClient

A DataLakeFileSystemClient representing the file system being leased.

leaseId
String

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

Returns

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetDataLakeLeaseClient(DataLakePathClient, String)

Source:
DataLakeLeaseClientExtensions.cs
Source:
DataLakeLeaseClientExtensions.cs

Initializes a new instance of the DataLakeLeaseClient class.

C#
public static Azure.Storage.Files.DataLake.DataLakeLeaseClient GetDataLakeLeaseClient(this Azure.Storage.Files.DataLake.DataLakePathClient client, string leaseId = default);

Parameters

client
DataLakePathClient

A DataLakePathClient representing the path being leased.

leaseId
String

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

Returns

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview