Show / Hide Table of Contents

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)

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

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

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
Back to top Generated by DocFX