Modifica

Condividi tramite


_NameSpace.GetAddressEntryFromID(String) Method

Definition

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

public:
 Microsoft::Office::Interop::Outlook::AddressEntry ^ GetAddressEntryFromID(System::String ^ ID);
public Microsoft.Office.Interop.Outlook.AddressEntry GetAddressEntryFromID (string ID);
Public Function GetAddressEntryFromID (ID As String) As AddressEntry

Parameters

ID
String

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

Returns

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.

Applies to