DisplayType Property (Recipient Object)

DisplayType Property (Recipient Object)

The DisplayType property returns the display type of the recipient. Read-only.

Syntax

objRecipient.DisplayType

Data Type

Long

Remarks

The DisplayType property enables special processing based on its value, such as displaying an associated icon. You can also use the display type to sort recipients.

The following values are defined:

DisplayType value

Decimal value

Description

CdoAgent

3

An automated agent, such as Quote-of-the-Day.

CdoDistList

1

A public distribution list.

CdoForum

2

A forum, such as a bulletin board or a public folder.

CdoOrganization

4

A special address entry defined for large groups, such as a helpdesk.

CdoPrivateDistList

5

A private, personally administered distribution list.

CdoRemoteUser

6

A messaging user in a remote messaging system.

CdoUser

0

A local messaging user.

When you Add a new recipient to a Recipients collection, the DisplayType property is set by the address book provider to either CdoUser or CdoDistList, depending on which kind of recipient is being added. The DisplayType property cannot subsequently be changed.

A private distribution list (PDL) exists only in your personal address book (PAB) and does not have an e-mail address. Before invoking a recipient's Address property, you should verify that its DisplayType is not CdoPrivateDistList. Attempted access to addressing properties on a PDL results in a return of CdoE_NOT_FOUND.

See Also

Concepts

Recipient Object