The Name property returns the display name used to log 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
' 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