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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetStoreFromID ( _
    ID As String _
) As Store
'Usage
Dim instance As _NameSpace
Dim ID As String
Dim returnValue As Store

returnValue = instance.GetStoreFromID(ID)
[DispIdAttribute()]
Store GetStoreFromID(
    string ID
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Outlook.Store
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 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.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace