Platform SDK: CDO 1.2.1 |
The Name property returns the display name of the profile logged on to this session. Read-only.
objSession.Name
The Name property is the default property of a Session object, meaning that objSession is syntactically equivalent to objSession.Name in Microsoft® Visual Basic® code.
String
To Name property contains the current profile's display name. To obtain the messaging user's display name, use the Name property of the AddressEntry object returned by the CurrentUser property.
The Name property corresponds to the MAPI property PR_PROFILE_NAME.
' from the function Session_Name If objSession Is Nothing Then MsgBox "Must log on first: see Session menu" Exit Function End If MsgBox "Profile name for this session = " & objSession.Name