_NameSpace.GetStoreFromID method

Returns a Store object that represents the store specified by ID.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Store GetStoreFromID(
	string ID


Type: System.String

A string value identifying a store.

Return value

Type: Microsoft.Office.Interop.Outlook.Store
A Store object that has the StoreID property matching ID.

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

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.