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