The Attachment class provides you with such properties as the FileName, DisplayName, Type, Size and etc. It accepts the parameter (stands for the object number in the collection) and returns an Attachment object. The key method we are currently interested in is the Item method. ![]() This property returns a collection of attachments which is represented in Outlook by the Attachments class. So items like AppointmentItem, ContactItem, DocumentItem, JournalItem etc. The Outlook Object Model provides the Attachments property for its Outlook items. Today I will show you how to iterate over the attachments collection and get the required information about attached items, such as file name, display name and type. As a developer, sometimes you may want to know what is attached to the e-mail you have selected or opened in Outlook.
0 Comments
Leave a Reply. |