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 ();
abstract member ReadContentAsync : unit -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
override this.ReadContentAsync : unit -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
Public Overridable Function ReadContentAsync () As Task(Of Response(Of DataLakeFileReadResult))

Returns

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

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

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);
abstract member ReadContentAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
override this.ReadContentAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
Public Overridable Function ReadContentAsync (cancellationToken As CancellationToken) As Task(Of Response(Of DataLakeFileReadResult))

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.

Applies to

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);
abstract member ReadContentAsync : Azure.Storage.Files.DataLake.Models.DataLakeFileReadOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
override this.ReadContentAsync : Azure.Storage.Files.DataLake.Models.DataLakeFileReadOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>>
Public Overridable Function ReadContentAsync (options As DataLakeFileReadOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataLakeFileReadResult))

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.

Applies to