Method Add
Add(string, IntPtr, int, string?)
Adds the file to the list of the files stored in memory.
bool Add(string filename, IntPtr binarydata, int size, string? mimetype = null)
Parameters
filename
stringSpecifies name of the file in the memory file system.
binarydata
nintSpecifies pointer to the file's raw data.
size
intSpecifies size of the file.
mimetype
stringSpecifies added file's MIME type.
Returns
Add(string, Stream, string?)
Adds the file to the list of the files stored in memory.
bool Add(string filename, Stream stream, string? mimetype = null)
Parameters
filename
stringSpecifies name of the file in the memory file system.
stream
StreamSpecifies stream with the file data.
mimetype
stringSpecifies added file's MIME type.
Returns
Add(string, string, string?)
Adds the file to the list of the files stored in memory.
bool Add(string filename, string osFilename, string? mimetype = null)
Parameters
filename
stringSpecifies name of the file in the memory file system.
osFilename
stringSpecifies filename on the hard drive to read the data from.
mimetype
stringSpecifies added file's MIME type.