Share via


UserProperty Object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

UserProperties
Aa200391.parchild(en-us,office.10).gifUserProperty
Aa200391.space(en-us,office.10).gifAa200391.parchild(en-us,office.10).gifNameSpace

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)

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.