MailBee.NET Objects 3.1

MessageIndexCollection Class

Represents an abstract list of indices (such as ordinal message numbers or UIDs) of mail messages.

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

System.Object
   System.Collections.CollectionBase
      MailBee.ImapMail.MessageIndexCollection
         MailBee.ImapMail.MessageNumberCollection
         MailBee.ImapMail.UidCollection

public abstract class MessageIndexCollection : CollectionBase

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.

Remarks

This class is an abstract parent of MessageNumberCollection and UidCollection classes.

Some methods of the Imap object (such as Search) can return both a collection of ordinal message numbers (MessageNumberCollection) and a collection of UIDs (UidCollection). The type of the returned collection is contolled via indexIsUid parameter value of these methods. Also, the developer should typecast the returned value to the appropriate type (MessageNumberCollection or UidCollection). See the sample code in Search topic for more information.

MessageNumberCollection and UidCollection classes can also be used to build and parse sequences of UIDs or message numbers in IMAP4 format (e.g. "5,8,14:22,24:26,35").

Requirements

Namespace: MailBee.ImapMail

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MessageIndexCollection Members | MailBee.ImapMail Namespace | MessageNumberCollection | UidCollection | Search