FileSystemOperationsExtensions.DirectOpenAsync Method (IFileSystemOperations, String, String, FileOpenParameters)

 

Directly opens and reads from the specified file, without requiring a redirect. This API is NOT webhdfs compliant. It should be used only by tools that do not rely on webhdfs interoperability.

Namespace:   Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly:  Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)

Syntax

public static Task<FileOpenResponse> DirectOpenAsync(
    this IFileSystemOperations operations,
    string filePath,
    string accountName,
    FileOpenParameters parameters
)
public:
[ExtensionAttribute]
static Task<FileOpenResponse^>^ DirectOpenAsync(
    IFileSystemOperations^ operations,
    String^ filePath,
    String^ accountName,
    FileOpenParameters^ parameters
)
static member DirectOpenAsync : 
        operations:IFileSystemOperations *
        filePath:string *
        accountName:string *
        parameters:FileOpenParameters -> Task<FileOpenResponse>
<ExtensionAttribute>
Public Shared Function DirectOpenAsync (
    operations As IFileSystemOperations,
    filePath As String,
    accountName As String,
    parameters As FileOpenParameters
) As Task(Of FileOpenResponse)

Parameters

  • filePath
    Type: System.String

    Required. The path to the file to open.

  • accountName
    Type: System.String

    Required. The name of the account to use

Return Value

Type: System.Threading.Tasks.Task<FileOpenResponse>

The data from the file requested.

See Also

FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace

Return to top