Platform SDK: CDO 1.2.1 |
The Name property returns or sets the name of the Recipient object as a string. Read/write.
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.
String
The Name property corresponds to the MAPI property PR_DISPLAY_NAME.
' 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)