Name Property (CDONTS Folder Object)

The Name property returns the name of the Folder object as a string. Read-only.

Syntax

objFolder.Name 
 

Data Type

String

Example

Dim objInbox As Folder ' assume valid 
Dim objOutbox As Folder ' assume valid 
' assume valid Session object 
Set objInbox = objSession.GetDefaultFolder(CdoDefaultFolderInbox) 
Set objOutbox = objSession.GetDefaultFolder(CdoDefaultFolderOutbox) 
MsgBox "Inbox name = " & objInbox.Name 
MsgBox "Outbox name = " & objOutbox.Name