EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method ReadAllBytes

    ReadAllBytes(IFileProvider, string)

    Reads all bytes from a file in the specified file provider.

    Declaration
    public static byte[] ReadAllBytes(this IFileProvider fileProvider, string path)
    Parameters
    Type Name Description
    IFileProvider fileProvider

    The file provider to query.

    string path

    The path to the file within the file provider.

    Returns
    Type Description
    byte[]

    A byte array containing the contents of the file.

    Exceptions
    Type Condition
    FileNotFoundException

    Thrown when the specified file cannot be found.

    IOException

    Thrown if an I/O error occurs during the read operation.

    2025 © Xab3r. All rights reserved.