Table of Contents

Constructor HtmlResource

Namespace
DocWright.Formats.Html
Assembly
DocWright.Formats.Html.dll

HtmlResource(byte[], string)

Initializes a resolved resource.

public HtmlResource(byte[] data, string contentType)

Parameters

data byte[]

The resource bytes. The array is not copied; do not mutate it afterwards.

contentType string

The content type, for example "image/png".

Exceptions

ArgumentNullException

data or contentType is null.

ArgumentException

data is empty.