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
filenamestringSpecifies name of the file in the memory file system.
binarydataIntPtrSpecifies pointer to the file's raw data.
sizeintSpecifies size of the file.
mimetypestringSpecifies 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
filenamestringSpecifies name of the file in the memory file system.
streamStreamSpecifies stream with the file data.
mimetypestringSpecifies 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
filenamestringSpecifies name of the file in the memory file system.
osFilenamestringSpecifies filename on the hard drive to read the data from.
mimetypestringSpecifies added file's MIME type.