TrashEntries

A collection of TrashEntry objects in the Trash object, or an independent standalone list of Trash entries.

Properties

The following table lists properties along with their access and descriptions.

Property

Access

Description

Application

R/O

Application. The Application object.

Count

R/O

Long. The number of objects in this collection.

_NewEnum

R/O

Enumeration object. Implements IEnumVARIANT. For Windows only.

Parent

R/O

Object. The Trash object (for the contents of the trash) or the Application object (for a stand-alone collection returned from Find) that owns this collection.

Methods

TrashEntries Find(VARIANT Condition)

Returns a new collection that contains the TrashEntry objects whose Message properties match the filter expression given by the Condition parameter. Condition may be either a string or a Filter object. If Condition is a string, it represents a filter expression. See Section 5.0, Filter Expressions. If Condition is a Filter object, it represents a saved filter.

TrashEntry Item(Long Index)

DEFAULT. Returns the TrashEntry object located at the given Index in the collection. Valid indexes are 1 through Count inclusive. Throws an exception if the Index is outside of this range.

TrashEntry ItemEx(VARIANT Index)

Returns the TrashEntry object located specified by Index. Index may be a string, a Long, or a Message Object. If Index is a string, retuns the TrashEntry object whose Message object’s MessageID property is equal to Index. If Index is a Long, retuns the TrashEntry object located at the given Index in the collection. Valid indexes are 1 through Count inclusive. Throws an exception if the Index is outside of this range. If Index is a Message object, returns the TrashEntry object whose Message property is equal to Index.