The Imap type exposes the following members.

Constructors

  NameDescription
Public methodImap
Initializes a new instance of the Imap class.

Methods

  NameDescription
Public methodAbort
Aborts the current operation.
Public methodConnect(String)
Connects to the IMAP server.
Public methodConnect(String, SslMode)
Connects to the IMAP server. Use a port corresponding to the specified security mode.
Public methodConnect(String, Int32)
Connects to the IMAP server.
Public methodConnect(String, Int32, SslMode)
Connects to the IMAP server.
Public methodConnect(String, Int32, TlsParameters, ImapSecurity) Obsolete.
Public methodConnectAsync(String, Object)
Begins asynchronous Connect operation. Connects to the IMAP server.
Public methodConnectAsync(String, SslMode, Object)
Begins asynchronous Connect operation. Connects to the IMAP server. Use a port corresponding to the specified security mode.
Public methodConnectAsync(String, Int32, Object)
Begins asynchronous Connect operation. Connects to the IMAP server.
Public methodConnectAsync(String, Int32, SslMode, Object)
Begins asynchronous Connect operation. Connects to the IMAP server.
Public methodCopyMessage(Int32, String)
Copies a message with the specified sequence number to the specified folder.
Public methodCopyMessage(String, String)
Copies a message with the specified unique ID to the specified folder.
Public methodCopyMessage(ImapMessageSet, String)
Copies messages from the current folder that belong to a specified message set to the specified folder.
Public methodCopyMessageAsync(Int32, String, Object)
Begins asynchronous CopyMessage operation. Copies a message with the specified sequence number to the specified folder.
Public methodCopyMessageAsync(String, String, Object)
Begins asynchronous CopyMessage operation. Copies a message with the specified unique ID to the specified folder.
Public methodCopyMessageAsync(ImapMessageSet, String, Object)
Begins asynchronous CopyMessage operation. Copies messages from the current folder that belong to a specified message set to the specified folder.
Public methodCreateFolder
Creates a folder with the specified name.
Public methodCreateFolderAsync
Begins asynchronous CreateFolder operation. Creates a folder with the specified name.
Public methodDeleteFolder
Deletes a folder with the specified name.
Public methodDeleteFolderAsync
Begins asynchronous DeleteFolder operation. Deletes a folder with the specified name.
Public methodDeleteMessage(Int32)
Marks a message with the specified sequence number as deleted.
Public methodDeleteMessage(String)
Marks a message with the specified unique ID as deleted.
Public methodDeleteMessage(ImapMessageSet)
Marks messages that belong to a specified message set as deleted.
Public methodDeleteMessageAsync(Int32, Object)
Begins asynchronous DeleteMessage operation. Marks a message with the specified sequence number as deleted.
Public methodDeleteMessageAsync(String, Object)
Begins asynchronous DeleteMessage operation. Marks a message with the specified unique ID as deleted.
Public methodDeleteMessageAsync(ImapMessageSet, Object)
Begins asynchronous DeleteMessage operation. Marks messages that belong to a specified message set as deleted.
Public methodDisconnect
Disconnects from the IMAP server.
Public methodDisconnectAsync
Begins asynchronous Disconnect operation. Disconnects from the IMAP server.
Public methodDispose()()()()
Disposes the Imap object and all the socket objects.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Imap and optionally releases the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Finalizer. Called by garbage collector during object destruction.
(Overrides Object..::..Finalize()()()().)
Public methodFolderExists
Detects whether the specified folder exists on the server. Not all IMAP servers support this!
Public methodFolderExistsAsync
Begins asynchronous FolderExists operation. Detects whether the specified folder exists on the server. Not all IMAP servers support this!
Public methodGetConnectionState
Checks whether the IMAP session is still connected and returns its state.
Public methodGetFolderInfo
Returns information about the specified folder without selecting it.
Public methodGetFolderInfoAsync
Begins asynchronous GetFolderInfo operation. Returns information about the specified folder without selecting it.
Public methodGetFolderList()()()()
Gets the list of root subfolders.
Public methodGetFolderList(String)
Gets the list of subfolders in the specified folder.
Public methodGetFolderList(String, ImapFolderListMode)
Gets the list of subfolders in the specified folder.
Public methodGetFolderList(String, ImapFolderListMode, Boolean)
Gets the list of subfolders in the specified folder.
Public methodGetFolderListAsync
Begins asynchronous GetFolderList operation. Gets the list of subfolders in the specified folder.
Public methodGetHashCode (Inherited from Object.)
Public methodGetMailMessage(Int32)
Downloads the message with the specified sequence number and loads it into an instance of MailMessage.
Public methodGetMailMessage(String)
Downloads the message with the specified unique ID and loads it into an instance of MailMessage.
Public methodGetMailMessageAsync(Int32, Object)
Begins asynchronous GetMailMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MailMessage.
Public methodGetMailMessageAsync(String, Object)
Begins asynchronous GetMailMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MailMessage.
Public methodGetMessage(Int32, Stream)
Downloads the message with the specified sequence number and writes its data into a supplied stream.
Public methodGetMessage(Int32, String)
Downloads the message with the specified sequence number and writes its data into a local file.
Public methodGetMessage(String, Stream)
Downloads the message with the specified unique ID and writes its data into a supplied stream.
Public methodGetMessage(String, String)
Downloads the message with the specified unique ID and writes its data into a local file.
Public methodGetMessage(Int32, Stream, Int64, Int32)
Downloads the specified part of the message with the specified sequence number and writes its data into a supplied stream.
Public methodGetMessage(Int32, String, Int64, Int32)
Downloads the message with the specified sequence number and writes its data into a local file.
Public methodGetMessage(String, Stream, Int64, Int32)
Downloads the specified part of the message with the specified unique ID and writes its data into a supplied stream.
Public methodGetMessage(String, String, Int64, Int32)
Downloads the message with the specified unique ID and writes its data into a local file.
Public methodGetMessageAsync(Int32, Stream, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a supplied stream.
Public methodGetMessageAsync(Int32, String, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file.
Public methodGetMessageAsync(String, Stream, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a supplied stream.
Public methodGetMessageAsync(String, String, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file.
Public methodGetMessageAsync(Int32, Stream, Int64, Int32, Object)
Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified sequence number and writes its data into a supplied stream.
Public methodGetMessageAsync(Int32, String, Int64, Int32, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file.
Public methodGetMessageAsync(String, Stream, Int64, Int32, Object)
Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified unique ID and writes its data into a supplied stream.
Public methodGetMessageAsync(String, String, Int64, Int32, Object)
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file.
Public methodGetMessageHeaders(Int32, Stream)
Downloads the headers of a message with the specified sequence number and writes it into a supplied stream.
Public methodGetMessageHeaders(String, Stream)
Downloads the headers of a message with the specified unique ID and writes it into a supplied stream.
Public methodGetMessageHeadersAsync(Int32, Stream, Object)
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified sequence number and writes it into a supplied stream.
Public methodGetMessageHeadersAsync(String, Stream, Object)
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified unique ID and writes it into a supplied stream.
Public methodGetMessageInfo(Int32, ImapListFields)
Gets information about a message with the specified sequence number.
Public methodGetMessageInfo(String, ImapListFields)
Gets information about a message with the specified unique ID
Public methodGetMessageInfoAsync(Int32, ImapListFields, Object)
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified sequence number.
Public methodGetMessageInfoAsync(String, ImapListFields, Object)
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified unique ID
Public methodGetMessageList()()()()
Gets the list of messages in the current folder.
Public methodGetMessageList(ImapListFields)
Gets the list of messages in the current folder.
Public methodGetMessageList(ImapMessageSet)
Gets the list of messages in the current folder that belong to a specified message set.
Public methodGetMessageList(ImapMessageSet, ImapListFields)
Gets the list of messages in the current folder that belong to a specified message set.
Public methodGetMessageListAsync(ImapListFields, Object)
Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder.
Public methodGetMessageListAsync(ImapMessageSet, ImapListFields, Object)
Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder that belong to a specified message set.
Public methodGetMessagePart(Int32, String)
Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePart(String, String)
Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePart(Int32, String, Stream)
Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePart(String, String, Stream)
Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePartAsync(Int32, String, Object)
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePartAsync(String, String, Object)
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePartAsync(Int32, String, Stream, Object)
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessagePartAsync(String, String, Stream, Object)
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
Public methodGetMessages(ImapMessageSet, Action<(Of <<'(ImapMessage>)>>))
Downloads messages in the current folder that belong to a specified message set.
Public methodGetMessages(ImapMessageSet, ImapListFields, Action<(Of <<'(ImapMessage>)>>))
Downloads messages in the current folder that belong to a specified message set.
Public methodGetMessagesAsync
Begins asynchronous GetMessages operation. Downloads messages in the current folder that belong to a specified message set.
Public methodGetMimeMessage(Int32)
Downloads the message with the specified sequence number and loads it into an instance of MimeMessage.
Public methodGetMimeMessage(String)
Downloads the message with the specified unique ID and loads it into an instance of MimeMessage.
Public methodGetMimeMessageAsync(Int32, Object)
Begins asynchronous GetMimeMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MimeMessage.
Public methodGetMimeMessageAsync(String, Object)
Begins asynchronous GetMimeMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MimeMessage.
Public methodGetSupportedAuthenticationMethods
Gets the list of supported authentication methods.
Public methodGetType (Inherited from Object.)
Public methodCheckConnectionState
Checks whether the IMAP session is still connected. Throws an exception on error.
Public methodCheckForUpdates()()()()
Processes server notifications.
Public methodCheckForUpdates(Int32)
Processes server notifications for the specified amount of time.
Public methodCheckForUpdatesAsync(Object)
Begins asynchronous CheckForUpdates operation. Processes server notifications.
Public methodCheckForUpdatesAsync(Int32, Object)
Begins asynchronous CheckForUpdates operation. Processes server notifications for the specified amount of time.
Public methodLogin(GssApiProvider)
Authenticates the user to the IMAP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono.
Public methodLogin(ImapAuthentication)
Authenticates the user to the IMAP server using the specified authentication method that does not require credentials (NTLM, GSSAPI or EXTERNAL). Only supported on Windows.
Public methodLogin(String, ImapAuthentication)
Authenticates the user to the IMAP server using an OAuth token.
Public methodLogin(String, String)
Authenticates the user to the IMAP server using the specified authentication method.
Public methodLogin(String, String, ImapAuthentication)
Authenticates the user to the IMAP server using the specified authentication method.
Public methodLoginAsync(GssApiProvider, Object)
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono.
Public methodLoginAsync(ImapAuthentication, Object)
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method that does not require credentials (NTLM, GSSAPI or EXTERNAL). Only supported on Windows.
Public methodLoginAsync(String, ImapAuthentication, Object)
Begins asynchronous Login operation. Authenticates the user to the IMAP server using an OAuth token.
Public methodLoginAsync(String, String, Object)
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method.
Public methodLoginAsync(String, String, ImapAuthentication, Object)
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnCommandSent
Raises the CommandSent event.
Protected methodOnNotification
Raises the Notification event.
Protected methodOnResponseRead
Raises the ResponseRead event.
Protected methodOnStateChanged
Raises the StateChanged event.
Protected methodOnTransferProgress
Raises the TransferProgress event.
Public methodPurge()()()()
Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodPurge(ImapMessageSet)
Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodPurgeAsync(Object)
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodPurgeAsync(ImapMessageSet, Object)
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodReadResponse
Returns the response of the IMAP server to the command.
Public methodReadResponseAsync
Begins asynchronous ReadResponse operation. Returns the response of the IMAP server to the command.
Public methodRenameFolder
Renames a specified folder to a new name.
Public methodRenameFolderAsync
Begins asynchronous RenameFolder operation. Renames a specified folder to a new name.
Public methodRequestCheckpoint
Requests a checkpoint of the currently selected mailbox. mailbox.
Public methodRequestCheckpointAsync
Begins asynchronous RequestCheckpoint operation. Requests a checkpoint of the currently selected mailbox. mailbox.
Public methodSearch(array<ImapSearchParameter>[]()[][])
Search the current folder for messages that match the specified searching criteria.
Public methodSearch(ImapListFields, array<ImapSearchParameter>[]()[][])
Search the current folder for messages that match the specified searching criteria.
Public methodSearch(ImapMessageSet, ImapListFields, array<ImapSearchParameter>[]()[][])
Search the current folder for messages that match the specified searching criteria.
Public methodSearchAsync(ImapListFields, array<ImapSearchParameter>[]()[][], Object)
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
Public methodSearchAsync(ImapMessageSet, ImapListFields, array<ImapSearchParameter>[]()[][], Object)
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
Public methodSecure()()()()
Secures the connection with TLS/SSL using default parameters.
Public methodSecure(TlsParameters) Obsolete.
Public methodSecureAsync
Begins asynchronous Secure operation. Secures the connection with TLS/SSL using default parameters.
Public methodSelectFolder(String)
Selects the specified folder so that its messages can be accessed.
Public methodSelectFolder(String, Boolean)
Selects the specified folder so that its messages can be accessed.
Public methodSelectFolderAsync
Begins asynchronous SelectFolder operation. Selects the specified folder so that its messages can be accessed.
Public methodSendCommand
Executes a command on the IMAP server.
Public methodSendCommandAsync
Begins asynchronous SendCommand operation. Executes a command on the IMAP server.
Public methodSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags)
Modifies the flags of a message with the specified sequence number.
Public methodSetMessageFlags(String, ImapFlagAction, ImapMessageFlags)
Modifies the flags of a message with the specified unique ID.
Public methodSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags)
Modifies the flags of messages in the current folder that belong to a specified message set.
Public methodSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, array<String>[]()[][])
Modifies the flags of a message with the specified sequence number.
Public methodSetMessageFlags(String, ImapFlagAction, ImapMessageFlags, array<String>[]()[][])
Modifies the flags of a message with the specified unique ID.
Public methodSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, array<String>[]()[][])
Modifies the flags of messages in the current folder that belong to a specified message set.
Public methodSetMessageFlagsAsync(Int32, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified sequence number.
Public methodSetMessageFlagsAsync(String, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified unique ID.
Public methodSetMessageFlagsAsync(ImapMessageSet, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous SetMessageFlags operation. Modifies the flags of messages in the current folder that belong to a specified message set.
Public methodSetSocketFactory
Sets the socket factory to be used to create communication sockets.
Public methodStoreMessage(String, MailMessage)
Uploads the message to the specified folder.
Public methodStoreMessage(String, MimeMessage)
Uploads the message to the specified folder.
Public methodStoreMessage(String, Stream)
Uploads the message read from the stream to the specified folder and sets its flags.
Public methodStoreMessage(String, String)
Uploads the message read from a local file and sets its flags.
Public methodStoreMessage(String, MailMessage, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, MimeMessage, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, Stream, ImapMessageFlags)
Uploads the message read from the stream to the specified folder and sets its flags.
Public methodStoreMessage(String, String, ImapMessageFlags)
Uploads the message read from a local file and sets its flags.
Public methodStoreMessage(String, MailMessage, ImapMessageFlags, array<String>[]()[][])
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, MimeMessage, ImapMessageFlags, array<String>[]()[][])
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, Stream, ImapMessageFlags, array<String>[]()[][])
Uploads the message read from the stream to the specified folder and sets its flags.
Public methodStoreMessage(String, String, ImapMessageFlags, array<String>[]()[][])
Uploads the message read from a local file and sets its flags.
Public methodStoreMessage(String, String, String, String, String)
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, String, String, String, String, ImapMessageFlags)
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessage(String, String, String, String, String, ImapMessageFlags, array<String>[]()[][])
Uploads the message to the specified folder and sets its flags.
Public methodStoreMessageAsync(String, MimeMessage, ImapMessageFlags, Object)
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
Public methodStoreMessageAsync(String, MailMessage, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
Public methodStoreMessageAsync(String, MimeMessage, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
Public methodStoreMessageAsync(String, Stream, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous StoreMessage operation. Uploads the message read from the stream to the specified folder and sets its flags.
Public methodStoreMessageAsync(String, String, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous StoreMessage operation. Uploads the message read from a local file and sets its flags.
Public methodStoreMessageAsync(String, String, String, String, String, ImapMessageFlags, array<String>[]()[][], Object)
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
Public methodStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime)
Uploads the contents of the stream to the specified folder and sets its flags and date.
Public methodStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, array<String>[]()[][])
Uploads the contents of the stream to the specified folder and sets its flags and date.
Public methodStoreRawMessageAsync
Begins asynchronous StoreRawMessage operation. Uploads the contents of the stream to the specified folder and sets its flags and date.
Public methodSubscribe
Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.
Public methodSubscribeAsync
Begins asynchronous Subscribe operation. Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.
Public methodToString
Returns a string representation of this object.
(Overrides Object..::..ToString()()()().)
Public methodUndeleteMessage()()()()
Marks all messages as not deleted.
Public methodUndeleteMessage(Int32)
Marks a message with the specified sequence number as not deleted.
Public methodUndeleteMessage(String)
Marks a message with the specified unique ID as not deleted.
Public methodUndeleteMessage(ImapMessageSet)
Marks messages that belong to a specified message set as not deleted.
Public methodUndeleteMessageAsync(Int32, Object)
Begins asynchronous UndeleteMessage operation. Marks a message with the specified sequence number as not deleted.
Public methodUndeleteMessageAsync(String, Object)
Begins asynchronous UndeleteMessage operation. Marks a message with the specified unique ID as not deleted.
Public methodUndeleteMessageAsync(ImapMessageSet, Object)
Begins asynchronous UndeleteMessage operation. Marks messages that belong to a specified message set as not deleted.
Public methodUnselectFolder()()()()
Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge()()()() method.
Public methodUnselectFolder(Boolean)
Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodUnselectFolderAsync(Object)
Begins asynchronous UnselectFolder operation. Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge()()()() method.
Public methodUnselectFolderAsync(Boolean, Object)
Begins asynchronous UnselectFolder operation. Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
Public methodUnsubscribe
Unsubscribes from a specified folder, removing it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.
Public methodUnsubscribeAsync
Begins asynchronous Unsubscribe operation. Unsubscribes from a specified folder, removing it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.

Extension Methods

  NameDescription
Public Extension MethodBeginConnect(String, AsyncCallback, Object)Overloaded.
Begins asynchronous Connect operation. Connects to the IMAP server.
(Defined by ImapExtensions.)
Public Extension MethodBeginConnect(String, Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous Connect operation. Connects to the IMAP server.
(Defined by ImapExtensions.)
Public Extension MethodBeginConnect(String, SslMode, AsyncCallback, Object)Overloaded.
Begins asynchronous Connect operation. Connects to the IMAP server. Use a port corresponding to the specified security mode.
(Defined by ImapExtensions.)
Public Extension MethodBeginConnect(String, Int32, SslMode, AsyncCallback, Object)Overloaded.
Begins asynchronous Connect operation. Connects to the IMAP server.
(Defined by ImapExtensions.)
Public Extension MethodBeginConnect(String, Int32, TlsParameters, ImapSecurity, AsyncCallback, Object)Overloaded. (Defined by ImapExtensions.)
Public Extension MethodBeginCopyMessage(Int32, String, AsyncCallback, Object)Overloaded.
Begins asynchronous CopyMessage operation. Copies a message with the specified sequence number to the specified folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginCopyMessage(String, String, AsyncCallback, Object)Overloaded.
Begins asynchronous CopyMessage operation. Copies a message with the specified unique ID to the specified folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginCopyMessage(ImapMessageSet, String, AsyncCallback, Object)Overloaded.
Begins asynchronous CopyMessage operation. Copies messages from the current folder that belong to a specified message set to the specified folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginCreateFolder
Begins asynchronous CreateFolder operation. Creates a folder with the specified name.
(Defined by ImapExtensions.)
Public Extension MethodBeginDeleteFolder
Begins asynchronous DeleteFolder operation. Deletes a folder with the specified name.
(Defined by ImapExtensions.)
Public Extension MethodBeginDeleteMessage(Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous DeleteMessage operation. Marks a message with the specified sequence number as deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginDeleteMessage(String, AsyncCallback, Object)Overloaded.
Begins asynchronous DeleteMessage operation. Marks a message with the specified unique ID as deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginDeleteMessage(ImapMessageSet, AsyncCallback, Object)Overloaded.
Begins asynchronous DeleteMessage operation. Marks messages that belong to a specified message set as deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginDisconnect
Begins asynchronous Disconnect operation. Disconnects from the IMAP server.
(Defined by ImapExtensions.)
Public Extension MethodBeginFolderExists
Begins asynchronous FolderExists operation. Detects whether the specified folder exists on the server. Not all IMAP servers support this!
(Defined by ImapExtensions.)
Public Extension MethodBeginGetFolderInfo
Begins asynchronous GetFolderInfo operation. Returns information about the specified folder without selecting it.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetFolderList
Begins asynchronous GetFolderList operation. Gets the list of subfolders in the specified folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMailMessage(Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMailMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MailMessage.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMailMessage(String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMailMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MailMessage.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(Int32, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(String, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(Int32, String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(String, String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(Int32, Stream, Int64, Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified sequence number and writes its data into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(String, Stream, Int64, Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the specified part of the message with the specified unique ID and writes its data into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(Int32, String, Int64, Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified sequence number and writes its data into a local file.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessage(String, String, Int64, Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessage operation. Downloads the message with the specified unique ID and writes its data into a local file.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageHeaders(Int32, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified sequence number and writes it into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageHeaders(String, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageHeaders operation. Downloads the headers of a message with the specified unique ID and writes it into a supplied stream.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageInfo(Int32, ImapListFields, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified sequence number.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageInfo(String, ImapListFields, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageInfo operation. Gets information about a message with the specified unique ID
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageList(ImapListFields, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessageList(ImapMessageSet, ImapListFields, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessageList operation. Gets the list of messages in the current folder that belong to a specified message set.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessagePart(Int32, String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessagePart(String, String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessagePart(Int32, String, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessagePart(String, String, Stream, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMessagePart operation. Downloads the specified part of the message into the specified stream. Used to download separate attachments. Call GetMessageInfo(String, ImapListFields) with ImapListFields.MessageStructure argument to download the list of sections and access it using GetParts()()()() method.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMessages
Begins asynchronous GetMessages operation. Downloads messages in the current folder that belong to a specified message set.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMimeMessage(Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMimeMessage operation. Downloads the message with the specified sequence number and loads it into an instance of MimeMessage.
(Defined by ImapExtensions.)
Public Extension MethodBeginGetMimeMessage(String, AsyncCallback, Object)Overloaded.
Begins asynchronous GetMimeMessage operation. Downloads the message with the specified unique ID and loads it into an instance of MimeMessage.
(Defined by ImapExtensions.)
Public Extension MethodBeginCheckForUpdates(AsyncCallback, Object)Overloaded.
Begins asynchronous CheckForUpdates operation. Processes server notifications.
(Defined by ImapExtensions.)
Public Extension MethodBeginCheckForUpdates(Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous CheckForUpdates operation. Processes server notifications for the specified amount of time.
(Defined by ImapExtensions.)
Public Extension MethodBeginLogin(GssApiProvider, AsyncCallback, Object)Overloaded.
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono.
(Defined by ImapExtensions.)
Public Extension MethodBeginLogin(ImapAuthentication, AsyncCallback, Object)Overloaded.
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method that does not require credentials (NTLM, GSSAPI or EXTERNAL). Only supported on Windows.
(Defined by ImapExtensions.)
Public Extension MethodBeginLogin(String, ImapAuthentication, AsyncCallback, Object)Overloaded.
Begins asynchronous Login operation. Authenticates the user to the IMAP server using an OAuth token.
(Defined by ImapExtensions.)
Public Extension MethodBeginLogin(String, String, AsyncCallback, Object)Overloaded.
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method.
(Defined by ImapExtensions.)
Public Extension MethodBeginLogin(String, String, ImapAuthentication, AsyncCallback, Object)Overloaded.
Begins asynchronous Login operation. Authenticates the user to the IMAP server using the specified authentication method.
(Defined by ImapExtensions.)
Public Extension MethodBeginPurge(AsyncCallback, Object)Overloaded.
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginPurge(ImapMessageSet, AsyncCallback, Object)Overloaded.
Begins asynchronous Purge operation. Permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginReadResponse
Begins asynchronous ReadResponse operation. Returns the response of the IMAP server to the command.
(Defined by ImapExtensions.)
Public Extension MethodBeginRenameFolder
Begins asynchronous RenameFolder operation. Renames a specified folder to a new name.
(Defined by ImapExtensions.)
Public Extension MethodBeginRequestCheckpoint
Begins asynchronous RequestCheckpoint operation. Requests a checkpoint of the currently selected mailbox. mailbox.
(Defined by ImapExtensions.)
Public Extension MethodBeginSearch(ImapListFields, array<ImapSearchParameter>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
(Defined by ImapExtensions.)
Public Extension MethodBeginSearch(ImapMessageSet, ImapListFields, array<ImapSearchParameter>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous Search operation. Search the current folder for messages that match the specified searching criteria.
(Defined by ImapExtensions.)
Public Extension MethodBeginSecure(AsyncCallback, Object)Overloaded.
Begins asynchronous Secure operation. Secures the connection with TLS/SSL using default parameters.
(Defined by ImapExtensions.)
Public Extension MethodBeginSecure(TlsParameters, AsyncCallback, Object)Overloaded. (Defined by ImapExtensions.)
Public Extension MethodBeginSelectFolder
Begins asynchronous SelectFolder operation. Selects the specified folder so that its messages can be accessed.
(Defined by ImapExtensions.)
Public Extension MethodBeginSendCommand
Begins asynchronous SendCommand operation. Executes a command on the IMAP server.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified sequence number.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(String, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified unique ID.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of messages in the current folder that belong to a specified message set.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(Int32, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified sequence number.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(String, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of a message with the specified unique ID.
(Defined by ImapExtensions.)
Public Extension MethodBeginSetMessageFlags(ImapMessageSet, ImapFlagAction, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous SetMessageFlags operation. Modifies the flags of messages in the current folder that belong to a specified message set.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, MimeMessage, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, MailMessage, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, Stream, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message read from the stream to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, String, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message read from a local file and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, MimeMessage, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, MailMessage, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, Stream, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message read from the stream to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, String, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message read from a local file and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, String, String, String, String, ImapMessageFlags, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreMessage(String, String, String, String, String, ImapMessageFlags, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreMessage operation. Uploads the message to the specified folder and sets its flags.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, AsyncCallback, Object)Overloaded.
Begins asynchronous StoreRawMessage operation. Uploads the contents of the stream to the specified folder and sets its flags and date.
(Defined by ImapExtensions.)
Public Extension MethodBeginStoreRawMessage(String, Stream, ImapMessageFlags, MailDateTime, array<String>[]()[][], AsyncCallback, Object)Overloaded.
Begins asynchronous StoreRawMessage operation. Uploads the contents of the stream to the specified folder and sets its flags and date.
(Defined by ImapExtensions.)
Public Extension MethodBeginSubscribe
Begins asynchronous Subscribe operation. Subscribes to a specified folder, adding it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.
(Defined by ImapExtensions.)
Public Extension MethodBeginUndeleteMessage(Int32, AsyncCallback, Object)Overloaded.
Begins asynchronous UndeleteMessage operation. Marks a message with the specified sequence number as not deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginUndeleteMessage(String, AsyncCallback, Object)Overloaded.
Begins asynchronous UndeleteMessage operation. Marks a message with the specified unique ID as not deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginUndeleteMessage(ImapMessageSet, AsyncCallback, Object)Overloaded.
Begins asynchronous UndeleteMessage operation. Marks messages that belong to a specified message set as not deleted.
(Defined by ImapExtensions.)
Public Extension MethodBeginUnselectFolder(AsyncCallback, Object)Overloaded.
Begins asynchronous UnselectFolder operation. Unselects the currently selected folder. Messages marked as deleted (with a Deleted flag) are not permanently removed. To remove them, use UnselectFolder(Boolean) or Purge()()()() method.
(Defined by ImapExtensions.)
Public Extension MethodBeginUnselectFolder(Boolean, AsyncCallback, Object)Overloaded.
Begins asynchronous UnselectFolder operation. Unselects the currently selected folder and optionally permanently removes all messages marked as deleted (with a Deleted flag) from the current folder.
(Defined by ImapExtensions.)
Public Extension MethodBeginUnsubscribe
Begins asynchronous Unsubscribe operation. Unsubscribes from a specified folder, removing it to a list of active folders that appear in the folder listings with ImapFolderListMode set to Subscribed.
(Defined by ImapExtensions.)
Public Extension MethodEndConnect
Ends an asynchronous BeginConnect operation.
(Defined by ImapExtensions.)
Public Extension MethodEndCopyMessage
Ends an asynchronous BeginCopyMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndCreateFolder
Ends an asynchronous BeginCreateFolder operation.
(Defined by ImapExtensions.)
Public Extension MethodEndDeleteFolder
Ends an asynchronous BeginDeleteFolder operation.
(Defined by ImapExtensions.)
Public Extension MethodEndDeleteMessage
Ends an asynchronous BeginDeleteMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndDisconnect
Ends an asynchronous BeginDisconnect operation.
(Defined by ImapExtensions.)
Public Extension MethodEndFolderExists
Ends an asynchronous BeginFolderExists operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetFolderInfo
Ends an asynchronous BeginGetFolderInfo operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetFolderList
Ends an asynchronous BeginGetFolderList operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMailMessage
Ends an asynchronous BeginGetMailMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessage
Ends an asynchronous BeginGetMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessageHeaders
Ends an asynchronous BeginGetMessageHeaders operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessageInfo
Ends an asynchronous BeginGetMessageInfo operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessageList
Ends an asynchronous BeginGetMessageList operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessagePart
Ends an asynchronous BeginGetMessagePart operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMessages
Ends an asynchronous BeginGetMessages operation.
(Defined by ImapExtensions.)
Public Extension MethodEndGetMimeMessage
Ends an asynchronous BeginGetMimeMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndCheckForUpdates
Ends an asynchronous BeginCheckForUpdates operation.
(Defined by ImapExtensions.)
Public Extension MethodEndLogin
Ends an asynchronous BeginLogin operation.
(Defined by ImapExtensions.)
Public Extension MethodEndPurge
Ends an asynchronous BeginPurge operation.
(Defined by ImapExtensions.)
Public Extension MethodEndReadResponse
Ends an asynchronous BeginReadResponse operation.
(Defined by ImapExtensions.)
Public Extension MethodEndRenameFolder
Ends an asynchronous BeginRenameFolder operation.
(Defined by ImapExtensions.)
Public Extension MethodEndRequestCheckpoint
Ends an asynchronous BeginRequestCheckpoint operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSearch
Ends an asynchronous BeginSearch operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSecure
Ends an asynchronous BeginSecure operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSelectFolder
Ends an asynchronous BeginSelectFolder operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSendCommand
Ends an asynchronous BeginSendCommand operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSetMessageFlags
Ends an asynchronous BeginSetMessageFlags operation.
(Defined by ImapExtensions.)
Public Extension MethodEndStoreMessage
Ends an asynchronous BeginStoreMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndStoreRawMessage
Ends an asynchronous BeginStoreRawMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndSubscribe
Ends an asynchronous BeginSubscribe operation.
(Defined by ImapExtensions.)
Public Extension MethodEndUndeleteMessage
Ends an asynchronous BeginUndeleteMessage operation.
(Defined by ImapExtensions.)
Public Extension MethodEndUnselectFolder
Ends an asynchronous BeginUnselectFolder operation.
(Defined by ImapExtensions.)
Public Extension MethodEndUnsubscribe
Ends an asynchronous BeginUnsubscribe operation.
(Defined by ImapExtensions.)

Fields

  NameDescription
Public fieldStatic memberDefaultImplicitSslPort
Default IMAP/Implicit SSL port (993).
Public fieldStatic memberDefaultPort
Default IMAP port (143).

Properties

  NameDescription
Public propertyAbortTimeout
Gets or sets the length of time before the abort operation times out.
Public propertyClearTextLoginDisabled
Returns a value indicating whether the clear text login is disabled. Either use one of the more secure authentication methods, or upgrade to TLS/SSL if you wish to perform clear text login.
Public propertyCurrentFolder
Gets the ImapFolder object that represents the currently selected folder, or null if no folder is selected.
Public propertyEnabledExtensions
Gets or sets the bit field specifying the enabled extensions.
Public propertyEncoding
Gets or sets the Encoding to use to encode and decode command parameters and server responses.
Protected propertyInstanceId
Gets instance ID (intended for logging purposes).
(Inherited from NetworkSession.)
Public propertyIsAuthenticated
Returns a value indicating whether the session is authenticated.
(Overrides NetworkSession..::..IsAuthenticated.)
Public propertyIsBusy
Gets a value indicating whether there is any operation (method) in progress.
Public propertyIsConnected
Gets a value indicating whether the session is connected.
(Overrides NetworkSession..::..IsConnected.)
Public propertyIsSecured
Gets the value indicating whether the control connection is secured.
Public propertyLocalEndPoint
Gets the local client EndPoint.
Public propertyLogWriter
Gets or sets the LogWriter used by this object.
(Inherited from NetworkSession.)
Public propertyOptions Obsolete.
Public propertyProxy
Gets or sets the network proxy to use to access a remote server.
Public propertyRemoteEndPoint
Gets the remote server EndPoint.
Public propertyServerName
Gets the server name, if available.
(Inherited from NetworkSession.)
Public propertyServerPort
Gets the server port, if available.
(Inherited from NetworkSession.)
Public propertySettings
Gets or sets IMAP object settings.
Public propertyState
Gets the current state of the Imap object.
Public propertySupportedExtensions
Gets the bit field specifying the extensions supported by the server.
Public propertyTimeout
Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out).
Public propertyTlsSocket
Returns the TLS/SSL socket of secured control connection.
Public propertyUserName
Gets the authenticated user name, if available.
(Inherited from NetworkSession.)
Public propertyStatic memberVersion
Returns the version of the SMTP component.

Events

  NameDescription
Public eventCommandSent
Occurs when a command is send to the server.
Public eventNotification
Occurs when a notification is received from the server. By sending notifications, the server informs connected clients about specific actions performed by either this client, by another connected session, or the server itself.
Public eventResponseRead
Occurs when a response is received from the server.
Public eventStateChanged
Occurs when the state of the Imap object is changed.
Public eventTransferProgress
Occurs when data is send or received.
Public eventValidatingCertificate
Occurs when a server certificate needs to be validated.

See Also