ItemProperties object (Outlook)
A collection of all properties associated with the item.
Remarks
Use the ItemProperties property to return the ItemProperties collection. Use ItemProperties.Item (index), where index is the name of the object or the numeric position of the item within the collection, to return a single ItemProperty object.
Note
The ItemProperties collection is zero-based, meaning that the first item in the collection is referenced by 0.
Use the Add method to add a new item property to the ItemProperties collection. Use the Remove method to remove an item property from the ItemProperties collection.
Note
You can only add or remove custom properties. Custom properties are denoted by the IsUserProperty.
Example
The following example creates a new MailItem object and stores its ItemProperties collection in a variable called objItems
.
Sub ItemProperty()
'Creates a new MailItem and access its properties
Dim objMail As MailItem
Dim objItems As ItemProperties
Dim objItem As ItemProperty
'Create the mail item
Set objMail = Application.CreateItem(olMailItem)
'Create a reference to the item properties collection
Set objItems = objMail.ItemProperties
'Create a reference to the item property page
Set objItem = objItems.item(0)
End Sub
Methods
Name |
---|
Add |
Item |
Remove |
Properties
Name |
---|
Application |
Class |
Count |
Parent |
Session |
See also
ItemProperties Object Members Outlook Object Model Reference
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.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기