SafeItems object

 

This object is obsolete. Use RDOItems object instead.

 

SafeItems collection represents a folder contents table .

 

Returned by:

MAPIFolder.Items

MAPIFolder.HiddenItems

MAPIFolder.DeletedItems

 

Properties

Methods

 


Derived from: IDispatch


Properties


Application Returns Outlook.Application object
 
Class: Always returns 16 (olItems).
 
Count

integer, read-only. The number of messages in the RDOItems collection.

 

 
MAPITable

MAPITable, read-only. Returns the MAPITable Redemption object which can be used to manipulate the collection (restrict, find, etc).

 

 
Parent

Message parent. Read-only.

 

 
RawTable IUnknown, read-only. Returns the IMAPITable Extended MAPI interface used internally by the Items collection.
 
Session Returns Outlook.Namespace object.
 

Methods


Add(Type)

Adds a new message to the folder. Returns the newly added MessageItem object.

Type - variant, optional. either string specifying the message class (e.g. "IPM.Note") or a file name (see below) or one of the OlItemType values (integer), e.g. olPostItem.

 

 
GetFirst

Returns the first message in the specified SafeItems collection. Returns Nothing if no first message exists, for example, if there are no messages.

 

 
GetLast

Returns the last message in the specified SafeItems collection. Returns Nothing if no last message exists, for example, if there are no messages.

 

 
GetNext

Returns the next message in the specified SafeItems collection. It returns Nothing if no next message exists, for example, if already positioned at the end of the collection.

 

 
GetPrevious

Returns the previous message in the specified SafeItems collection. It returns Nothing if no previous message exists, for example, if already positioned at the beginning of the collection.

 

 
Item(Index) Returns the message (MessageItem) with the given index (1 through Count) or subject.
 
Remove(Index) Removes the message with the given index.