EntryID Property
Applies To
AppointmentItem object, ContactItem object, JournalItem object, MailItem object, MAPIFolder object, MeetingRequestItem object, NoteItem object, PostItem object, Recipient object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.
Description
Returns the unique entry ID of the object. This property corresponds to the MAPI property PR_ENTRYID. MAPI systems assign a permanent, unique ID string when an object is created that does not change from one MAPI session to another. The EntryID property is not set for an Outlook item until it is saved or sent. Read-only String.
Example
This example compares the entry ID of one message to the entry ID of a message returned by a search operation to determine whether the objects represent the same message.
If myItem.EntryID = myFoundItem.EntryID Then
MsgBox "These two message objects refer to the same message."
End If