Attachment Constructor (Stream, String, String) |
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,
string name,
string mediaType
)
Public Sub New (
contentStream As Stream,
name As String,
mediaType As String
)
public:
Attachment(
Stream^ contentStream,
String^ name,
String^ mediaType
)
new :
contentStream : Stream *
name : string *
mediaType : string -> Attachment
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