Initializes a new instance of a Attachment
with the content of the supplied byte array and with a media type and suggested name.
Namespace:
Rebex.Mail
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Sub New ( _ content As Byte(), _ name As String, _ mediaType As String _ ) |
C# |
---|
public Attachment( byte[] content, string name, string mediaType ) |
Parameters
- content
- Type: array<System..::..Byte>[]()[][]
Byte array 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.