MailItem.ItemProperties property (Outlook)

Returns an ItemProperties collection that represents all standard and user-defined properties associated with the Outlook item. Read-only.

Syntax

expression. ItemProperties

expression A variable that represents a MailItem object.

Remarks

The ItemProperties collection is a zero-based collection, meaning that the first object in the collection is referenced by the index 0.

Example

The following Microsoft Visual Basic for Applications (VBA) example returns the ItemProperties collection associated with a MailItem object.

Sub ItemProperty() 
 
 'Creates a new email item and accesses its properties. 
 
 Dim objMail As Outlook.MailItem 
 
 Dim objItems As Outlook.ItemProperties 
 
 Dim objItem As Outlook.ItemProperty 
 
 
 
 'Create the email item. 
 
 Set objMail = Application.CreateItem(olMailItem) 
 
 'Create a reference to the email item's properties collection. 
 
 Set objItems = objMail.ItemProperties 
 
 'Create a reference to the third email item property. 
 
 Set objItem = objItems.Item(2) 
 
 MsgBox objItem.Name & " = " & objItem.Value 
 
End Sub

See also

MailItem 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.