ItemProperty object (Outlook)
Represents information about a given item property for a Microsoft Outlook item object.
Remarks
Each item property defines a certain attribute of the item, such as the name, type, or value of the item. The ItemProperty object is a member of the ItemProperties collection.
Use ItemProperties.Item (index), where index is the object's numeric position within the collection or it's name to return a single ItemProperty object.
Example
The following example creates a reference to the first ItemProperty object in the ItemProperties collection.
Sub NewMail()
'Creates a new MailItem and references the ItemProperties collection.
Dim objMail As MailItem
Dim objitems As ItemProperties
Dim objitem As ItemProperty
'Create a new mail item
Set objMail = Application.CreateItem(olMailItem)
'Create a reference to the ItemProperties collection
Set objitems = objMail.ItemProperties
'Create reference to the first object in the collection
Set objitem = objitems.item(0)
End Sub
Properties
Name |
---|
Application |
Class |
IsUserProperty |
Name |
Parent |
Session |
Type |
Value |
See also
Outlook Object Model Reference ItemProperty Object Members
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.