Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an ItemProperty object to the ItemProperties collection.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function Add ( _
Name As String, _
Type As OlUserPropertyType, _
AddToFolderFields As Object, _
DisplayFormat As Object _
) As ItemProperty
'Usage
Dim instance As ItemProperties
Dim Name As String
Dim Type As OlUserPropertyType
Dim AddToFolderFields As Object
Dim DisplayFormat As Object
Dim returnValue As ItemProperty
returnValue = instance.Add(Name, Type, _
AddToFolderFields, DisplayFormat)
[DispIdAttribute()]
ItemProperty Add(
string Name,
OlUserPropertyType Type,
Object AddToFolderFields,
Object DisplayFormat
)
Parameters
Name
Type: System.StringThe name of the new item property object.
Type
Type: Microsoft.Office.Interop.Outlook.OlUserPropertyTypeThe type of the new ItemProperty.
AddToFolderFields
Type: System.ObjectDetermines if the item property will be added to the folder fields.
DisplayFormat
Type: System.ObjectDefines the format of the field as it appears in a given folder.
Return Value
Type: Microsoft.Office.Interop.Outlook.ItemProperty
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.