NameSpace.GetStoreFromID Method

Outlook Developer Reference

Returns a Store object that represents the store specified by

ID

.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.GetStoreFromID(ID)

expression   A variable that represents a NameSpace object.

Parameters

Name Required/Optional Data Type Description
ID Required String A string value identifying a store.

Return Value
A Store object that has the StoreID property matching

ID

.

Remarks

The StoreID property of a Store is unique to the profile for the session. It is equivalent to the MAPI property PR_STORE_ENTRY_ID.

The store must be mounted in order for this method to succeed.

GetStoreFromID returns an error if no store with the specified

ID

can be found for the current session.

See Also