Platform SDK: CDO 1.2.1

CurrentStore Property (ContainerRenderer Object)

The CurrentStore property sets the message store containing the data source. Write-only.

Syntax

objContRend.CurrentStore

Data Type

Object (InfoStore)

Remarks

The CurrentStore property supplies the InfoStore object that holds the container object to be rendered. You only need to set it if you are rendering from public folders on Microsoft® Exchange Server.

Note that not all container objects reside in a message store. An InfoStore object is relevant if the container object is a Folders, Messages, or Recipients collection, but CurrentStore is undefined for an AddressEntries collection. The container object to be rendered is supplied by the DataSource property.

Example

This code fragment places the value of the message store containing the Session object's Inbox folder into the CurrentStore property:

' assume valid ContainerRenderer and Session objects 
Set objInbox = objSession.Inbox 
objContRend.DataSource = objInbox.Messages 
strStoreID = objInbox.StoreID 
Set objDataSourceStore = objSession.GetInfoStore(strStoreID) 
objContRend.CurrentStore = objDataSourceStore