Constructor HtmlResource
HtmlResource(byte[], string)
Initializes a resolved resource.
public HtmlResource(byte[] data, string contentType)
Parameters
databyte[]The resource bytes. The array is not copied; do not mutate it afterwards.
contentTypestringThe content type, for example "image/png".
Exceptions
- ArgumentNullException
dataorcontentTypeis null.- ArgumentException
datais empty.