Imap FolderGet Enumerator Method
Get an enumerator for the messages in the folder.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The enumerator.
IEnumerableTGetEnumerator
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public override IEnumerator<MimeMessage> GetEnumerator()Return Value
IEnumeratorMimeMessageThe enumerator.
Implements
IEnumerableTGetEnumeratorIEnumerableTGetEnumerator
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. |