Attachments Collection Object

The Attachments collection object contains one or more Attachment objects.

At a Glance

Specified in type library: CDO.DLL
First available in: CDO Library version 1.0.a
Parent objects: Message
Child objects: Attachment
Default property: Item

An Attachments collection is considered a small collection, which means that it supports count and index values that let you access an individual Attachment object through the Item property. The Attachments collection supports the Microsoft® Visual Basic® For Each statement. For more information on collections, see Object Collections.

Properties


Name
Available since version
Type

Access
Application 1.0.a String Read-only
Class 1.0.a Long Read-only
Count 1.0.a Long Read-only
Item 1.0.a Attachment object Read-only
Parent 1.0.a Message object Read-only
Session 1.0.a Session object Read-only

Methods


Name
Available since version
Parameters
Add 1.0.a (optional) name as String,
(optional) position as Long,
(optional) type as Long,
(optional) source as String
Delete 1.0.a (none)