Click or drag to resize

Attachment Constructor (MediaType, Stream, String)

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

Namespace:  GemBox.Email
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1019
Syntax
public Attachment(
	MediaType contentType,
	Stream content,
	string fileName
)

Parameters

contentType
Type: GemBox.Email.MimeMediaType
The Content-Type header value.
content
Type: System.IOStream
The content.
fileName
Type: SystemString
File name.
Exceptions
ExceptionCondition
ArgumentException Content is null or empty.
See Also