Click or drag to resize

FileValue Constructor (String, MimeType, Byte)

Constructor for FileValue.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.18.0
Syntax
C#
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
ExceptionCondition
ArgumentException when file name is null or empty. when bytes array is null.
See Also