편집

다음을 통해 공유


NameSpace.GetAddressEntryFromID method (Outlook)

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

Syntax

expression. GetAddressEntryFromID( _ID_ )

expression A variable that represents a 'NameSpace' object.

Parameters

Name Required/Optional Data type Description
ID Required String Used to identify an address entry that is maintained for the session.

Return value

An AddressEntry that has the ID property that matches the specified ID.

Remarks

This method is similar to the GetAddressEntryFromID method of the Account object. Use this method if there is only the primary Exchange account in the current profile. If there are multiple Microsoft Exchange accounts in the current profile, use the GetAddressEntryFromID method for the corresponding account.

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, if no connection is available, or if the user is set to work offline.

See also

NameSpace Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.