NameSpace.GetStoreFromID method (Outlook)
Returns a Store object that represents the store specified by ID.
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's 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.