ItemProperties Property
Returns an **ItemProperties**collection that represents all standard and user-defined properties associated with an e-mail item.
expression.ItemProperties
*expression * Required. An expression that returns one of the objects in the Applies To list.
Remarks
The ItemProperties collection is a zero (0) based collection, meaning that the first object in the collection is referenced by the index 0, instead of 1.
Example
The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example returns the ItemProperties collection associated with a **MailItem**object.
Sub ItemProperty()
'Creates a new e-mail item and accesses its properties.
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Dim objItems As Outlook.ItemProperties
Dim objItem As Outlook.ItemProperty
Set olApp = New Outlook.Application
'Create the e-mail item.
Set objMail = olApp.CreateItem(olMailItem)
'Create a reference to the e-mail item's properties collection.
Set objItems = objMail.ItemProperties
'Create a reference to the third e-mail item property.
Set objItem = objItems.Item(2)
MsgBox objItem.Name & " = " & objItem.Value
End Sub
Applies to | AppointmentItem Object | ContactItem Object | DistListItem Object | DocumentItem Object | Exception Object | JournalItem Object | MailItem Object | MeetingItem Object | NoteItem Object | PostItem Object | RemoteItem Object | ReportItem Object | TaskItem Object | TaskRequestAcceptItem Object | TaskRequestDeclineItem Object | TaskRequestItem Object | TaskRequestUpdateItem Object
See Also | ItemProperty Object