Compartir a través de


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

See Also

Concepts

Outlook Object Model Reference

ItemProperty Object Members