UserProperty Interface

Definition

Represents a custom property of an Outlook item.

public interface class UserProperty
[System.Runtime.InteropServices.Guid("00063042-0000-0000-C000-000000000046")]
public interface UserProperty
Public Interface UserProperty
Attributes

Remarks

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.

Properties

Application

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

Class

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

Formula

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

IsUserProperty

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

Name

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

Parent

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

Session

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

Type

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

ValidationFormula

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

ValidationText

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

Value

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

Methods

Delete()

Deletes an object from the collection.

Applies to