StoreID Property (Message Object)

The StoreID property represents the unique identifier for the message store that contains the message. Read-only.

Syntax

objMessage.StoreID

Data Type

String

Remarks

You can save the ID and StoreID properties of this message in order to recall it later with the Session object's GetMessage method.

A Microsoft® Schedule+ calendar folder does not reside in a message store. If you obtain the default calendar folder by passing CdoDefaultFolderCalendar to the Session object's GetDefaultFolder method, its messages have no defined value for the StoreID property. An attempt to access StoreID in this case returns CdoE_NOT_FOUND.

The StoreID property corresponds to the MAPI property PR_STORE_ENTRYID, converted to a string of hexadecimal characters. It can be rendered into HTML hypertext using the CDO Rendering ObjectRenderer object. To specify this, set the object renderer's DataSource property to this Message object and the property parameter of the RenderProperty method to CdoPR_STORE_ENTRYID.