Name Property (CDONTS Session Object)

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

Example

' 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