Share via


DataLakeFileClient.ReadContentAsync Method

Definition

Overloads

ReadContentAsync()

The ReadContentAsync() operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadContentAsync(CancellationToken)

The ReadContentAsync(CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadContentAsync(DataLakeFileReadOptions, CancellationToken)

The ReadContentAsync(DataLakeFileReadOptions, CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

ReadContentAsync()

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

The ReadContentAsync() operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>> ReadContentAsync();

Returns

A Response<T> describing the downloaded file. Content contains the file's data.

Remarks

A RequestFailedException will be thrown if a failure occurs. If multiple failures occur, an AggregateException will be thrown, containing each failure instance.

Applies to

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

ReadContentAsync(CancellationToken)

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

The ReadContentAsync(CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>> ReadContentAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the downloaded file. Content contains the file's data.

Remarks

A RequestFailedException will be thrown if a failure occurs. If multiple failures occur, an AggregateException will be thrown, containing each failure instance.

Applies to

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

ReadContentAsync(DataLakeFileReadOptions, CancellationToken)

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

The ReadContentAsync(DataLakeFileReadOptions, CancellationToken) operation downloads a file from the service, including its metadata and properties.

For more information, see Get Blob.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>> ReadContentAsync(Azure.Storage.Files.DataLake.Models.DataLakeFileReadOptions options, System.Threading.CancellationToken cancellationToken = default);

Parameters

options
DataLakeFileReadOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the downloaded file. Content contains the file's data.

Remarks

A RequestFailedException will be thrown if a failure occurs. If multiple failures occur, an AggregateException will be thrown, containing each failure instance.

Applies to

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