返回代表与项目关联的所有属性的 ItemProperties 集合。
expression.ItemProperties
expression 必选。该表达式返回“应用于”列表中的一个对象。
ItemProperties 集合是基于 0 的集合,这意味着集合中第一个对象由索引值 0(而不是 1)引用。
以下示例返回与 MailItem 对象关联的 Ite0mProperties 集合。
Sub ItemProperty()
'Creates a new mail item and accesses its properties
Dim olApp As Outlook.Application
Dim objMail As MailItem
Dim objItems As ItemProperties
Dim objItem As ItemProperty
Set olApp = Outlook.Application
'Create the mail item
Set objMail = olApp.CreateItem(olMailItem)
'Create a reference to the item's properties collection
Set objItems = objMail.ItemProperties
'Create a reference to the first item property page
Set objItem = objItems.Item(0)
End Sub