Attachment
Attachment()
Initializes new instance of Attachment
class.
See Also
Attachment(string, string)
Initializes new instance of Attachment
class.
public Attachment(string fileName, string filePath)
Parameter |
Type |
Description |
fileName |
String |
Attachment file name. |
filePath |
String |
Attachment relative path e.g. folder/file.docx or filename when the file is located in the root of an archive, in e-mail message or data file. |
Exceptions
exception |
condition |
ArgumentException |
Thrown when fileName is null or empty. |
ArgumentException |
Thrown when filePath is null or empty. |
See Also
Attachment(string, string, string, long)
Initializes new instance of Attachment
class.
public Attachment(string id, string fileName, string filePath, long size)
Parameter |
Type |
Description |
id |
String |
Unique (in context of single file) identifier of the attachment. |
fileName |
String |
Attachment file name. |
filePath |
String |
Attachment relative path e.g. folder/file.docx or filename when the file is located in the root of an archive, in e-mail message or data file. |
size |
Int64 |
Attachment file size in bytes. |
Exceptions
exception |
condition |
ArgumentException |
Thrown when id is null or empty. |
ArgumentException |
Thrown when fileName is null or empty. |
ArgumentException |
Thrown when filePath is null or empty. |
See Also
Attachment(string, string, string, FileType, long)
Initializes new instance of Attachment
class.
public Attachment(string id, string fileName, string filePath, FileType fileType, long size)
Parameter |
Type |
Description |
id |
String |
Unique (in context of single file) identifier of the attachment. |
fileName |
String |
Attachment file name. |
filePath |
String |
Attachment relative path e.g. folder/file.docx or filename when the file is located in the root of an archive, in e-mail message or data file. |
fileType |
FileType |
Attachment file type. |
size |
Int64 |
Attachment file size in bytes. |
Exceptions
exception |
condition |
ArgumentException |
Thrown when id is null or empty. |
ArgumentException |
Thrown when fileName is null or empty. |
ArgumentException |
Thrown when filePath is null or empty. |
ArgumentNullException |
Thrown when fileType is null. |
See Also