Name Property (AddressList Object)

The Name property returns the name of the AddressList object as a string. Read-only.

Syntax

objAddressList.Name

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

Data Type

String

Remarks

The Name property corresponds to the MAPI property PR_DISPLAY_NAME for the address book container represented by the AddressList object. It can be rendered into HTML hypertext using the CDO Rendering ContainerRenderer object if the container renderer's DataSource property is set to this AddressList object's child AddressEntries collection. To specify this, set the property parameter of the RenderProperty method to CdoPR_DISPLAY_NAME.

Example

Dim objAddressList As AddressList ' assume valid address list object 
MsgBox "Address book container name = " & objAddressList.Name 
' or could be just objAddressList since .Name is default property