Partager via


UserProperty Object

UserProperties
UserProperty

Represents a custom property of a Microsoft Outlook item.

Using The UserProperty Object

Use UserProperties (index), where index is a name or index number, to return a single UserProperty object.

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. The following example adds a custom text property named MyPropName.

Set myProp = myItem.UserProperties.Add("MyPropName", olText)

Note  When you create a custom property, a field is added in the folder that contains the item (using the same name as the property). That field can be used as a column in folder views.

Properties | Application Property | Class Property | Formula Property | Name Property | Parent Property | Session Property | Type Property | ValidationFormula Property | ValidationText Property | Value Property

Methods | Delete Method

Parent Objects

Child Objects