Partager via


_NameSpace.GetItemFromID Method

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

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetItemFromID ( _
    EntryIDItem As String, _
    EntryIDStore As Object _
) As Object
'Usage
Dim instance As _NameSpace
Dim EntryIDItem As String
Dim EntryIDStore As Object
Dim returnValue As Object

returnValue = instance.GetItemFromID(EntryIDItem, _
    EntryIDStore)
[DispIdAttribute()]
Object GetItemFromID(
    string EntryIDItem,
    Object EntryIDStore
)

Parameters

  • EntryIDStore
    Type: System.Object

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

Return Value

Type: System.Object
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.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Filter and Display Computed Properties When Enumerating Items in a Folder