Share via


DisplayName Property (IAddressee)

Topic Last Modified: 2006-06-13

Contains the display name of the addressee.

Applies To

IAddressee Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property DisplayName As String
HRESULT get_DisplayName(BSTR* pVal);HRESULT put_DisplayName(BSTR Val);

Parameters

  • pVal
    Returns the value of the DisplayName property as a reference to a BSTR.
  • Val
    Sets the value of the DisplayName property to the value of the BSTR.

Remarks

The DisplayName property defaults to the empty string until the addressee is resolved using the CheckName Method. After the addressee is resolved, this property contains the display name of the addressee as contained in the corresponding directory object. If the search criteria were ambiguous and multiple matches occurred, the DisplayName property remains empty.

Note that you can set the DisplayName property explicitly and then call the CheckName Method. The DisplayName property is then used along with other property values when attempting to resolve the addressee to a directory object.