Constructor FileValue
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
FileValue(string, MimeType, string)
Constructor for FileValue.
public FileValue(string fileName, MimeType contentType, string filePath)
Parameters
fileNamestringThe file name. Cannot be empty.
contentTypeMimeTypeA string representing the content type determined by the file extension. Equals
application/octet-streamwhen there's no MIME type associated with the file extension.filePathstringThe 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
fileNamestringThe file name. Cannot be empty.
contentTypeMimeTypeA string representing the content type determined by the file extension. Equals
application/octet-streamwhen there's no MIME type associated with the file extension.bytesbyte[]The byte sequence representing the file upload data segment.
Exceptions
- ArgumentException
when file name is null or empty. when bytes array is null.