Initializes a new instance of a Attachment
with the content of the supplied stream and with a media type and suggested name.
Namespace:
Rebex.MailAssembly: Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.3844.0
Syntax
| C# |
|---|
public Attachment( Stream contentStream, string name, string mediaType ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ contentStream As Stream, _ name As String, _ mediaType As String _ ) |
| Visual C++ |
|---|
public: Attachment( Stream^ contentStream, String^ name, String^ mediaType ) |
Parameters
- contentStream
- Type: System.IO..::.Stream
Stream from which the data will be read.
- name
- Type: System..::.String
A suggested name of the attachment.
- mediaType
- Type: System..::.String
A MIME media type of the file.