Share via


UserProperty Interface

Represents a custom property of an Outlook item.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DefaultMemberAttribute("Value")> _
<GuidAttribute("00063042-0000-0000-C000-000000000046")> _
<TypeLibTypeAttribute()> _
Public Interface UserProperty
'Usage
Dim instance As UserProperty
[DefaultMemberAttribute("Value")]
[GuidAttribute("00063042-0000-0000-C000-000000000046")]
[TypeLibTypeAttribute()]
public interface UserProperty

Remarks

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.

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.

See Also

Reference

UserProperty Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Ensure that Custom Item Properties Are Supported in Folder-Level Queries