Skip to content

IOFileFormat.Load Method ​

Overloads ​

NameDescription
Load(String, IReadOnlyList<IOFileFormat>)Loads a file from disk.
Load(String, Stream, IReadOnlyList<IOFileFormat>)Loads a file from a stream. Use as an alternative to Load(String, IReadOnlyList<IOFileFormat>) when the file is not on disk, for example web upload.

Load(String, IReadOnlyList<IOFileFormat>) ​

Loads a file from disk.

c#
public static IOFile Load(string path, params IReadOnlyList<IOFileFormat> supportedFormats);

View source

Parameters ​

NameTypeDescription
pathStringThe path to the file to load.
supportedFormatsIReadOnlyList<IOFileFormat>The supported formats for the file.

Returns ​

IOFile

The file that was read.

Load(String, Stream, IReadOnlyList<IOFileFormat>) ​

Loads a file from a stream. Use as an alternative to Load(String, IReadOnlyList<IOFileFormat>) when the file is not on disk, for example web upload.

c#
public static IOFile Load(string path, Stream stream, params IReadOnlyList<IOFileFormat> supportedFormats);

View source

Parameters ​

NameTypeDescription
pathStringThe path of the file in the stream. Used to determine the type of the file.
streamStreamThe file.
supportedFormatsIReadOnlyList<IOFileFormat>The supported formats for the file.

Returns ​

IOFile

The file that was read.