PrivateStore Property (ContainerRenderer Object)

PrivateStore Property (ContainerRenderer Object)

Important  The Collaboration Data Objects (CDO) 1.2.1 Rendering objects are not installed by or supported for use with Exchange Server 2003 or later.

The PrivateStore property sets the InfoStore object to be used to access personal views for a container object. Write-only.

Syntax

objContRend.PrivateStore

Data Type

Object (InfoStore)

Remarks

The PrivateStore property represents a messaging users default message store, which contains that users personal views. The default message store is the InfoStore containing the users active Inbox folder.

The PrivateStore property is only needed if you plan to do rendering from a Folders or Messages collection. When needed, PrivateStore should be set as soon as the container renderer is instantiated, and specifically before the DataSource property is set. If PrivateStore is not set at the right time, personal views are not available to the rendering application.

Example

This code fragment determines the users default message store from the Session object and sets the PrivateStore property accordingly:

Dim objSess As MAPI.Session
Dim objStore As InfoStore
Dim strStoreID As String
' ... assume objects are valid ...
strStoreID = objSess.Inbox.StoreID
Set objStore = objSess.GetInfoStore(strStoreID)
Set objContRend.PrivateStore = objStore
MsgBox "Your default store is " & objStore.Name
 

See Also

Concepts

ContainerRenderer Object