BoxClient.GetFileContentAsync Method

Definition

Get file content using id

public virtual System.Threading.Tasks.Task<byte[]> GetFileContentAsync(string fileId, bool? inferContentType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileContentAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
override this.GetFileContentAsync : string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<byte[]>
Public Overridable Function GetFileContentAsync (fileId As String, Optional inferContentType As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Byte())

Parameters

fileId
String

File Id

inferContentType
Nullable<Boolean>

Infer Content Type

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Byte[]>

The Get file content using id response.

Remarks

Retrieves the file content from Box using id.

Applies to