Imap.SelectFolder Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
SelectFolder(String, Boolean)
Selects the specified folder so that its messages can be accessed.
Declaration
public void SelectFolder(string folder, bool readOnly)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder to be selected. |
Boolean | readOnly | 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.
SelectFolder(String)
Selects the specified folder so that its messages can be accessed.
Declaration
public void SelectFolder(string folder)
Parameters
Type | Name | Description |
---|---|---|
String | folder | Folder to be selected. |
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.