Attachment

Attachment class

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

public class Attachment

Constructors

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

Methods

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

See Also