UserProperty UserProperty UserProperty Interface


Represents a custom property of an Outlook item.

public interface class UserProperty
public interface UserProperty
Public Interface UserProperty


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

Use the Add(String, OlUserPropertyType, Object, Object) 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.


Application Application Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class Class Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Formula Formula Formula

Returns or sets a String (string in C#) representing the formula for the user property. Read/write.

IsUserProperty IsUserProperty IsUserProperty

This object, member, or enumeration is deprecated and is not intended to be used in your code.

Name Name Name

Returns a String (string in C#) value that represents the display name for the object. Read-only.

Parent Parent Parent

Returns the parent Object of the specified object. Read-only.

Session Session Session

Returns the NameSpace object for the current session. Read-only.

Type Type Type

Returns an OlUserPropertyType constant indicating the type of the specified object. Read-only.

ValidationFormula ValidationFormula ValidationFormula

Returns or sets a String (string in C#) indicating the validation formula for the user property. Read/write.

ValidationText ValidationText ValidationText

Returns or sets a String (string in C#) specifying the validation text for the specified user property. Read/write.

Value Value Value

Returns or sets an Object indicating the value for the specified custom property. Read/write.


Delete() Delete() Delete()

Deletes an object from the collection.

Applies to