Name Property (Recipient Object)

Name Property (Recipient Object)

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

Syntax

objRecipient.Name

The Name property is the default property of a Recipient object, meaning that objRecipient is syntactically equivalent to objRecipient.Name in Microsoft® Visual Basic® code.

Data Type

String

Remarks

The Name property corresponds to the MAPI property PR_DISPLAY_NAME.

Example

' from the sample function Util_CompareFullAddressParts()
Dim strMsg As String
    Set objAddrEntry = objOneRecip.AddressEntry
' validate objects ... then display
    strMsg = "Recipient full address = " & objOneRecip.Address
    strMsg = strMsg & "; AddressEntry type = " & objAddrEntry.Type
    strMsg = strMsg & "; AddressEntry address = " & _
                                                  objAddrEntry.Address
    MsgBox strMsg ' compare address parts
    strMsg = "Recipient name = " & objOneRecip.Name
    strMsg = strMsg & "; AddressEntry name = " & objAddrEntry.Name
    MsgBox strMsg ' compare display names (should be same)
 

See Also

Concepts

Recipient Object