Click or drag to resize

Attachment Constructor (MediaType, Byte)

Initializes a new instance of the Attachment class with specified content type and content.

Namespace:  GemBox.Email
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1019
Syntax
public Attachment(
	MediaType contentType,
	byte[] content
)

Parameters

contentType
Type: GemBox.Email.MimeMediaType
The Content-Type header value.
content
Type: SystemByte
The content.
Exceptions
ExceptionCondition
ArgumentException Content is null or empty.
See Also