ItemProperties.Add(String, OlUserPropertyType, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an ItemProperty object to the ItemProperties collection.
public Microsoft.Office.Interop.Outlook.ItemProperty Add (string Name, Microsoft.Office.Interop.Outlook.OlUserPropertyType Type, object AddToFolderFields, object DisplayFormat);
Public Function Add (Name As String, Type As OlUserPropertyType, Optional AddToFolderFields As Object, Optional DisplayFormat As Object) As ItemProperty
Parameters
- Name
- String
The name of the new item property object.
- Type
- OlUserPropertyType
The type of the new ItemProperty.
- AddToFolderFields
- Object
Determines if the item property will be added to the folder fields.
- DisplayFormat
- Object
Defines the format of the field as it appears in a given folder.
Returns
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.