Platform SDK: CDO 1.2.1

ID Property (InfoStore Object)

The ID property returns the unique identifier of the InfoStore object as a string. Read-only.

Syntax

objInfoStore.ID

Data Type

String

Remarks

MAPI systems assign a permanent, unique identifier when an object is created. This identifier does not change from one MAPI session to another, nor from one messaging domain to another. The InfoStore identifier can be used in subsequent calls to the Session object’s GetInfoStore method.

The ID property corresponds to the MAPI property PR_ENTRYID, converted to a string of hexadecimal characters.

Example

Dim strInfoStoreID as String  ' hex string version of ID 
Dim objInfoStore as InfoStore ' assume valid 
strInfoStoreID = objInfoStore.ID ' global variable 
MsgBox "InfoStore ID = " & strInfoStoreID 
' ... this ID can be used as the parameter to the Session method 
Set objInfoStore = objSession.GetInfoStore(strInfoStoreID)