Partager via


MobileItem.ReceivedByEntryID Property (Outlook)

Returns a String value that represents the entry ID for the true recipient as set by the transport provider that delivers the e-mail message. Read-only.

Version Information

Version Added: Outlook 2010

Syntax

expression .ReceivedByEntryID

expression A variable that represents a MobileItem object.

Remarks

This property corresponds to the MAPI PidTagReceivedByEntryId property.

If you are getting this property in a Microsoft Visual Basic or Visual Basic for Applications (VBA) solution, because of type issues, instead of directly referencing the ReceivedByEntryID property, you should get the property through the PropertyAccessor object returned by the PropertyAccessor property, specifying the PidTagReceivedByEntryId property and its MAPI proptag namespace. The following VBA code example shows the workaround. The code example assumes there is a MobileItem object in the Drafts folder.

Public Sub GetReceiverEntryID() 
 
 Dim objDrafts As Outlook.Folder 
 
 Dim objMobileItem As Outlook.MobileItem 
 
 Dim oPA As Outlook.PropertyAccessor 
 
 Dim strEntryID As String 
 
 Const PR_RECEIVED_BY_ENTRYID As String = "https://schemas.microsoft.com/mapi/proptag/0x003F0102" 
 
 
 
 Set objDrafts = Application.Session.GetDefaultFolder(olFolderDrafts) 
 
 Set objMobileItem = objDrafts.Items(1) 
 
 Set oPA = objMobileItem.PropertyAccessor 
 
 strEntryID = oPA.BinaryToString(oPA.GetProperty(PR_RECEIVED_BY_ENTRYID)) 
 
 Debug.Print strEntryID 
 
 
 
 Set objDrafts = Nothing 
 
 Set objMobileItem = Nothing 
 
End Sub 
 

See Also

Concepts

MobileItem Object Members

MobileItem Object