Name Property (Session Object)

The Name property returns the display name of the profile logged on to this session. Read-only.

Syntax

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.

Data Type

String

Remarks

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.

Examples

' 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