Partager via


_NameSpace.GetAddressEntryFromID Method

Returns an AddressEntry object that represents the address entry specified by ID.

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

Syntax

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

returnValue = instance.GetAddressEntryFromID(ID)
[DispIdAttribute()]
AddressEntry GetAddressEntryFromID(
    string ID
)

Parameters

  • ID
    Type: System.String

    A string identifier for an address entry maintained for the session.

Return Value

Type: Microsoft.Office.Interop.Outlook.AddressEntry
An AddressEntry that has the ID property matching the specified ID.

Remarks

The ID property for an AddressEntry is a permanent, unique string identifier that the transport provider assigns when an AddressEntry is created.

Outlook maintains a hierarchy of address books for a session, and the address entry returned must match the given ID and be in one of the address books.

GetAddressEntryFromID returns an error if no item with the given ID can be found.

GetAddressEntryFromID also returns an error if no connection is available or the user is set to work offline.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get the Organizer of a Meeting