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
Syntaxpublic Attachment(
Stream contentStream,
ContentType contentType
)
Public Sub New (
contentStream As Stream,
contentType As ContentType
)
public:
Attachment(
Stream^ contentStream,
ContentType^ contentType
)
new :
contentStream : Stream *
contentType : ContentType -> Attachment
Parameters
- contentStream
- Type: System.IOStream
The content stream of attachment. - contentType
- Type: Aspose.Email.MimeContentType
The ContentType.
See Also