ItemProperties.Add Method (Outlook)
Adds an ItemProperty object to the ItemProperties collection.
Syntax
expression .Add(Name, Type, AddToFolderFields, DisplayFormat)
expression A variable that represents an ItemProperties object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Name |
Required |
String |
The name of the new item property object. |
Type |
Required |
The type of the new ItemProperty. |
|
AddToFolderFields |
Optional |
Variant |
Determines if the item property will be added to the folder fields. |
DisplayFormat |
Optional |
Variant |
Defines the format of the field as it appears in a given folder. |
Remarks
You can create a property of a type that is defined by the OlUserPropertyType enumeration, except for the following types: olEnumeration, olOutlookInternal, and olSmartFrom.