The SetColumns method allows the user to cache certain properties for extremely fast access to those particular properties of the item. The SetColumns method is useful for iterating through the Items collection. If you don't use this method, Outlook must open each item to access the property. With the SetColumns method, Outlook only checks the properties that you have cached. Properties which are not cached are returned empty.
Syntax
objItems.SetColumns(Columns)
objItems Required. An Items collection object.
Columns Required. A String containing the names of the properties to be cached, separated by commas.
Remarks
For the Items collection, SetColumns cannot be used, and will cause an error, with any property that returns an object, and it cannot be used with the following properties:
Body
Categories Children Class Companies Contacts DLName EntryID HTMLBody |
MemberCount RecurrenceState ReplyRecipients ResponseState Saved Sent Submitted VotingOptions |