Attachment Constructor (Stream, ContentType)

Initializes a new instance of the Attachment class.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public Attachment(
	Stream contentStream,
	ContentType contentType
)

Parameters

contentStream
Type: System.IOStream
The content stream of attachment.
contentType
Type: Aspose.Email.MimeContentType
The ContentType.
See Also