Share via


DataLakeFileClient.ReadContent Method

Definition

Overloads

ReadContent()

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

For more information, see Get Blob.

ReadContent(CancellationToken)

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

For more information, see Get Blob.

ReadContent(DataLakeFileReadOptions, CancellationToken)

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

For more information, see Get Blob.

ReadContent()

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

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

For more information, see Get Blob.

public virtual Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult> ReadContent ();
abstract member ReadContent : unit -> Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>
override this.ReadContent : unit -> Azure.Response<Azure.Storage.Files.DataLake.Models.DataLakeFileReadResult>
Public Overridable Function ReadContent () As 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

ReadContent(CancellationToken)

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

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

For more information, see Get Blob.

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

ReadContent(DataLakeFileReadOptions, CancellationToken)

Source:
DataLakeFileClient.cs
Source:
DataLakeFileClient.cs

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

For more information, see Get Blob.

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