IFileSystemOperations.OpenWithHttpMessagesAsync Método

Definição

Abre e lê do arquivo especificado.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream>> OpenWithHttpMessagesAsync (string accountName, string directFilePath, long? length = default, long? offset = default, Guid? fileSessionId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream>> OpenWithHttpMessagesAsync (string accountName, string path, long? length = default, long? offset = default, Guid? fileSessionId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member OpenWithHttpMessagesAsync : string * string * Nullable<int64> * Nullable<int64> * Nullable<Guid> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream>>
abstract member OpenWithHttpMessagesAsync : string * string * Nullable<int64> * Nullable<int64> * Nullable<Guid> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<System.IO.Stream>>
Public Function OpenWithHttpMessagesAsync (accountName As String, directFilePath As String, Optional length As Nullable(Of Long) = Nothing, Optional offset As Nullable(Of Long) = Nothing, Optional fileSessionId As Nullable(Of Guid) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Stream))
Public Function OpenWithHttpMessagesAsync (accountName As String, path As String, Optional length As Nullable(Of Long) = Nothing, Optional offset As Nullable(Of Long) = Nothing, Optional fileSessionId As Nullable(Of Guid) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Stream))

Parâmetros

accountName
String

A conta do Azure Data Lake Store na qual executar operações do sistema de arquivos.

directFilePathpath
String

O caminho do Data Lake Store (começando com '/') do arquivo a ser aberto.

length
Nullable<Int64>

O número de bytes que o servidor tentará recuperar. Ele recuperará <= bytes de comprimento.

offset
Nullable<Int64>

O deslocamento de bytes do qual começar a ler dados.

fileSessionId
Nullable<Guid>

GUID exclusivo opcional por arquivo que indica que todas as leituras com o mesmo fileSessionId são do mesmo cliente e da mesma sessão. Isso dará um benefício de desempenho.

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerada quando a operação retornou um código de status inválido

Gerada quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Aplica-se a