Click or drag to resize

ContentEntity Constructor (MediaType, Byte, TransferEncodingType, Encoding)

Initializes a new instance of the ContentEntity class with specified content type, raw content, transfer encoding and charset.

Namespace:  GemBox.Email.Mime
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1008
Syntax
public ContentEntity(
	MediaType contentType,
	byte[] content,
	TransferEncodingType encoding,
	Encoding charset
)

Parameters

contentType
Type: GemBox.Email.MimeMediaType
Content-Type header value.
content
Type: SystemByte
The content. Can be null.
encoding
Type: GemBox.Email.MimeTransferEncodingType
The content encoding.
charset
Type: System.TextEncoding
The content charset. Can be null.
Exceptions
ExceptionCondition
ArgumentException Content type top level type is multipart.
FreeLimitReachedException Content size exceeds limitation.
See Also