Class FileAttachment
Inheritance
object
FileAttachment
Namespace: AeLa.EasyFeedback.Utility
Assembly: cs.temp.dll.dll
Syntax
public class FileAttachment
Constructors
FileAttachment(string, byte[], string)
Creates a new instance of the FileAttachment object
Declaration
public FileAttachment(string name, byte[] data, string mimeType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the attachment |
| byte[] | data | The file data |
| string | mimeType | The MIME type of the file |
FileAttachment(string, string, string)
Creates a new instance of the FileAttachment object
Declaration
public FileAttachment(string name, string filePath, string mimeType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the attachment |
| string | filePath | The path to the file |
| string | mimeType | The MIME type of the file |
FileAttachment(string, string)
Creates a new instance of the FileAttachment object
Declaration
public FileAttachment(string filePath, string mimeType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath | The path to the file |
| string | mimeType | The MIME type of the file |
Properties
Data
Attached file data
Declaration
public byte[] Data { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
MimeType
The MIME type for this file
Declaration
public string MimeType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name of the file attachment (0 to 256 characters).
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |