Constructor FileValue
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
FileValue(string, MimeType, string)
Constructor for FileValue.
public FileValue(string fileName, MimeType contentType, string filePath)
Parameters
fileName
stringThe file name. Cannot be empty.
contentType
MimeTypeA 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.filePath
stringThe file path. Cannot be empty.
Exceptions
- ArgumentException
when file name or path is null or empty.
FileValue(string, MimeType, byte[])
Constructor for FileValue.
public FileValue(string fileName, MimeType contentType, byte[] bytes)
Parameters
fileName
stringThe file name. Cannot be empty.
contentType
MimeTypeA 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
byte[]The byte sequence representing the file upload data segment.
Exceptions
- ArgumentException
when file name is null or empty. when bytes array is null.