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 _
)
C#
public void SelectFolder(
	string folder
)

Parameters

folder
Type: System..::..String
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also