Strongly typed collection of mail folders.
For a list of all members of this type, see MailFolderCollection Members.
System.Object
MailFolderCollection
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
[C#]
IMAP4 imap = new IMAP4( "127.0.0.1" );
imap.Logger = new IMAPLog();
imap.Logger.InMemory = true;
imap.Username = "dave@blah.com";
imap.Password = "test";
imap.Login();
//list all of the folders
MailFolderCollection mfc = imap.FolderList();
Console.WriteLine( mfc.ToString() );
//write out the log
Console.WriteLine( imap.Logger.ToString() );
imap.Disconnect();
Console.WriteLine( "Done" );
Console.ReadLine();
[VB.NET]
Dim imap As New IMAP4("127.0.0.1")
imap.Logger = New IMAPLog()
imap.Logger.InMemory = True
imap.Username = "dave@blah.com"
imap.Password = "test"
imap.Login()
REM -- list all of the folders
Dim mfc As MailFolderCollection = imap.FolderList()
Console.WriteLine(mfc.ToString())
REM -- write out the log
Console.WriteLine(imap.Logger.ToString())
imap.Disconnect()
Console.WriteLine("Done")
Console.ReadLine()
Namespace: aspNetIMAP
Assembly: aspNetIMAP (in aspNetIMAP.dll)