Constructs a new
CopyC# instance.
Namespace: Jscape.Email
Attachment
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0
Syntax
C# |
---|
public Attachment( string file, byte[] data, string charset ) |
Visual Basic |
---|
Public Sub New ( _ file As String, _ data As Byte(), _ charset As String _ ) |
Visual C++ |
---|
public: Attachment( String^ file, array<unsigned char>^ data, String^ charset ) |
Parameters
- file
- Type: System..::..String
The file to be attached.
- data
- Type: array<System..::..Byte>[]()[][]
The byte[] data for attachment.
- charset
- Type: System..::..String
The character charset used in the filename.
Examples
To construct an attachment, create an instance and provide the
required file name, data, and character set.
CopyMime Attachment
CopyMime Attachment

Attachment att = new Attachment("c:\tmp\image.gif", data, "us-ascii");

Attachment att = new Attachment("c:\tmp\image.gif", data, "us-ascii")