Selects the specified folder so that its messages can be accessed.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Sub SelectFolder ( _ folder As String, _ readOnly As Boolean _ ) |
C# |
---|
public void SelectFolder( string folder, bool readOnly ) |
Parameters
- folder
- Type: System..::..String
Folder to be selected.
- readOnly
- Type: System..::..Boolean
Specifies whether the folder is to be selected as read-only.
Remarks
The CurrentFolder property will contain an instance of ImapFolder that represents the selected folder after a call to this method.
Only one mailbox can be selected at a time for a single connection, and only the messages in currently selected folder can be accessed. Also, most notifications only occur when a folder is selected.
This method represents IMAP SELECT and EXAMINE commands.