Table of Contents

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 string

The file name. Cannot be empty.

contentType MimeType

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.

filePath string

The 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 string

The file name. Cannot be empty.

contentType MimeType

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 byte[]

The byte sequence representing the file upload data segment.

Exceptions

ArgumentException

when file name is null or empty. when bytes array is null.