aspNetIMAP

FlagCollection Class

Strongly typed collection of Message or Folder Flags.

For a list of all members of this type, see FlagCollection Members.

System.Object
FlagCollection

publicclassFlagCollection : IList, ICollection, IEnumerable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

IMAP4 imap = new IMAP4( "127.0.0.1", "dave@blah.com", "test"  );
imap.Login();
 
MailFolder inbox = imap.SelectInbox();
MessageClient mc = inbox.MessageClient;
 
//get the flags of the first message 
FlagCollection fc  = mc.Flags(1);
Console.WriteLine( fc.ToString() );
 
imap.Disconnect();
 
Console.WriteLine( "Done" );
Console.ReadLine();
    
          [VB.NET]
Dim imap As New IMAP4("127.0.0.1", "dave@blah.com", "test")
imap.Login()
 
Dim inbox As MailFolder = imap.SelectInbox()
Dim mc As MessageClient = inbox.MessageClient
'get the flags of the first message 
Dim fc As FlagCollection = mc.Flags(1)
Console.WriteLine(fc.ToString())
 
imap.Disconnect()
 
Console.WriteLine("Done")
Console.ReadLine()
    

Requirements

Namespace: aspNetIMAP

Assembly: aspNetIMAP (in aspNetIMAP.dll)

See Also

FlagCollection Members | aspNetIMAP Namespace