_NameSpace.GetItemFromID(String, Object) Method

Definition

Returns a Microsoft Outlook item identified by the specified entry ID (if valid).

public object GetItemFromID (string EntryIDItem, object EntryIDStore);
Public Function GetItemFromID (EntryIDItem As String, Optional EntryIDStore As Object) As Object

Parameters

EntryIDItem
String

The EntryID of the item.

EntryIDStore
Object

The StoreID for the folder. EntryIDStore usually must be provided when retrieving an item based on its MAPI IDs.

Returns

An Object value that represents the specified Outlook item.

Remarks

This method is used for ease of transition between MAPI and OLE/Messaging applications and Outlook.

For more information about Entry IDs, see the EntryID property.

Applies to