This documentation is archived and is not being maintained.

_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)

[DispIdAttribute()]
Store GetStoreFromID(
	string ID
)

Parameters

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.

Show: