Table of Contents

Method Add

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

Specifies name of the file in the memory file system.

binarydata nint

Specifies pointer to the file's raw data.

size int

Specifies size of the file.

mimetype string

Specifies added file's MIME type.

Returns

bool

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 string

Specifies name of the file in the memory file system.

stream Stream

Specifies stream with the file data.

mimetype string

Specifies added file's MIME type.

Returns

bool

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 string

Specifies name of the file in the memory file system.

osFilename string

Specifies filename on the hard drive to read the data from.

mimetype string

Specifies added file's MIME type.

Returns

bool