Attachment

Attachment class

Represents attachment file contained by email message, archive, PDF document or Outlook data file.

public class Attachment

Constructors

Name Description
Attachment() Initializes new instance of Attachment class.
Attachment(string, string) Initializes new instance of Attachment class.
Attachment(string, string, string, long) Initializes new instance of Attachment class.
Attachment(string, string, string, FileType, long) Initializes new instance of Attachment class.

Properties

Name Description
FileName { get; set; } Attachment file name.
FilePath { get; set; } 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 { get; set; } Attachment file type.
Id { get; set; } Unique identifier of the attachment in context of a single file that contains this attachment.
Size { get; set; } Attachment file size in bytes.

Methods

Name Description
override ToString() Returns a string that represents the current object.

See Also