Contains
UserProperty
objects that represent the custom properties of an Outlook item.
Remarks
Use the UserProperties
property to return the UserProperties object for an Outlook item. This applies to all Outlook items except for the NoteItem.
Use the Add
method to create a new UserProperty for an item and add it to the UserProperties object. The Add method allows you to specify a name and type for the new property. When you create a new property, it can also be added as a custom field to the folder that contains the item (using the same name as the property) by setting the AddToFolderFields parameter to True when calling the Add method. That field can then be used as a column in folder views.
Use UserProperties(
index | ), where
index | is a name or one-based index number, to return a single
UserProperty
object.
You can use the UserDefinedProperties property of the Folder object to retrieve and examine the definitions of custom item-level properties that a folder can display in a view.
Example
The following example adds a custom text property named MyPropName to myItem.
| Visual Basic for Applications |
|---|
Set myProp = myItem.UserProperties.Add("MyPropName", olText)
|