ImapFolderGetEnumerator Method

Get an enumerator for the messages in the folder.

Definition

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public override IEnumerator<MimeMessage> GetEnumerator()

Return Value

IEnumeratorMimeMessage
The enumerator.

Implements

IEnumerableTGetEnumerator
IEnumerableTGetEnumerator

Remarks

Gets an enumerator for the messages in the folder.

Exceptions

ObjectDisposedException The ImapClient has been disposed.
ServiceNotConnectedException The ImapClient is not connected.
ServiceNotAuthenticatedException The ImapClient is not authenticated.
FolderNotOpenException The ImapFolder is not currently open.

See Also