Nevron Open Vision Documentation
Nevron.Nov.IO Namespace / NFile Class / ReadBytesAsync Method


In This Topic
    ReadBytesAsync Method
    In This Topic
    Reads the given number of bytes from this file or the whole file if it is smaller than the given number of bytes.
    Syntax
    'Declaration
     
    
    Public Function ReadBytesAsync( _
       ByVal byteCount As System.Integer _
    ) As NPromise(Of Byte())
    'Usage
     
    
    Dim instance As NFile
    Dim byteCount As System.Integer
    Dim value As NPromise(Of Byte())
     
    value = instance.ReadBytesAsync(byteCount)
    public NPromise<byte[]> ReadBytesAsync( 
       System.int byteCount
    )

    Parameters

    byteCount
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also