Platform SDK: CDO 1.2.1

Name Property (AddressEntry Object)

The Name property returns or sets the display name or alias of the AddressEntry object as a string. Read/write.

Syntax

objAddressEntry.Name

The Name property is the default property of an AddressEntry object, meaning that objAddressEntry is syntactically equivalent to objAddressEntry.Name in Microsoft® Visual Basic® code.

Data Type

String

Remarks

The AddressEntry object is typically used as a copy of valid addressing information obtained from the address book after you have called the Recipient object's Resolve method. When you obtain the AddressEntry object in this context, you should not modify its properties. To request resolution of a display name, use the Recipient object's Name property and Resolve method.

The Name property corresponds to the MAPI property PR_DISPLAY_NAME. It can be rendered into HTML hypertext using the ObjectRenderer object. To specify this, set the object renderer's DataSource property to this AddressEntry object and the property parameter of the RenderProperty method to CdoPR_DISPLAY_NAME.

Example

' for values of variables, see AddressEntry Address property 
' Recipient and AddressEntry display names are the same 
    strMsg = "Recipient name = " & objOneRecip.Name 
    strMsg = strMsg & "; AddressEntry name = " & objAddrEntry.Name 
    MsgBox strMsg 
 

See Also

Using Addresses