Propiedad MailItem.ReceivedByEntryID (Outlook)

Devuelve una cadena que representa la propiedad EntryID del destinatario establecido por el proveedor de transporte entregar el mensaje de correo. Solo lectura.

Sintaxis

expresión. ReceivedByEntryID

expresión Variable que representa un objeto MailItem.

Comentarios

Esta propiedad corresponde a la propiedad MAPI PidTagReceivedByEntryId.

Si recibe esta propiedad en una de Microsoft Visual Basic o Microsoft Visual Basic para solución de aplicaciones (VBA), debido a algunos problemas de tipo, en lugar de referencia directamente a ReceivedByEntryID, debería obtener la propiedad mediante el objeto PropertyAccessor devuelto por la propiedad MailItem.PropertyAccessor, especificando la propiedad PidTagReceivedByEntryId y su espacio de nombres proptag MAPI. El siguiente ejemplo de código de VBA muestra la solución alternativa.

Public Sub GetReceiverEntryID() 
 
 Dim objInbox As Outlook.Folder 
 
 Dim objMail As Outlook.MailItem 
 
 Dim oPA As Outlook.PropertyAccessor 
 
 Dim strEntryID As String 
 
 Const PidTagReceivedByEntryId As String = "http://schemas.microsoft.com/mapi/proptag/0x003F0102" 
 
 
 
 Set objInbox = Application.Session.GetDefaultFolder(olFolderInbox) 
 
 Set objMail = objInbox.Items(1) 
 
 Set oPA = objMail.PropertyAccessor 
 
 strEntryID = oPA.BinaryToString(oPA.GetProperty(PidTagReceivedByEntryId)) 
 
 Debug.Print strEntryID 
 
 
 
 Set objInbox = Nothing 
 
 Set objMail = Nothing 
 
End Sub

Consulte también

Objeto MailItem

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.