FileValue Constructor (String, MimeType, Byte) |
Constructor for FileValue.
Namespace:
DotNetBrowser.Net
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.20.0
Syntax public FileValue(
string fileName,
MimeType contentType,
byte[] bytes
)
Parameters
- fileName
- Type: SystemString
The file name. Cannot be empty. - contentType
- Type: DotNetBrowser.NetMimeType
A string representing the content type determined by the file extension. Equals
`application/octet-stream` when there's no MIME type associated with the file extension.
- bytes
- Type: SystemByte
The byte sequence representing the file upload data segment.
Exceptions Exception | Condition |
---|
ArgumentException |
when file name is null or empty.
when bytes array is null.
|
See Also