Attachment Constructor (Stream, String, String)

Initializes a new instance of the Attachment class.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public Attachment(
	Stream contentStream,
	string name,
	string mediaType
)

Parameters

contentStream
Type: System.IOStream
The content stream of attachment.
name
Type: SystemString
The attachment name.
mediaType
Type: SystemString
The media type name.
See Also