Click or drag to resize
MimeKit

ImapCommandException Class

An exception that is thrown when an IMAP command returns NO or BAD.
Inheritance Hierarchy
SystemObject
  SystemException
    MailKitCommandException
      MailKit.Net.ImapImapCommandException

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
[SerializableAttribute]
public class ImapCommandException : CommandException

The ImapCommandException type exposes the following members.

Constructors
 NameDescription
Public methodImapCommandException(ImapCommandResponse, String) Initializes a new instance of the ImapCommandException class.
Protected methodImapCommandException(SerializationInfo, StreamingContext) Initializes a new instance of the ImapCommandException class.
Public methodImapCommandException(ImapCommandResponse, String, String) Initializes a new instance of the ImapCommandException class.
Public methodImapCommandException(ImapCommandResponse, String, String, Exception) Initializes a new instance of the ImapCommandException class.
Top
Properties
 NameDescription
Public propertyData
(Inherited from Exception)
Public propertyHelpLink
(Inherited from Exception)
Public propertyHResult
(Inherited from Exception)
Public propertyInnerException
(Inherited from Exception)
Public propertyMessage
(Inherited from Exception)
Public propertyResponse Gets the IMAP command response.
Public propertyResponseText Gets the human-readable IMAP command response text.
Public propertySource
(Inherited from Exception)
Public propertyStackTrace
(Inherited from Exception)
Public propertyTargetSite
(Inherited from Exception)
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetBaseException
(Inherited from Exception)
Public methodGetHashCode
(Inherited from Object)
Public methodGetObjectData When overridden in a derived class, sets the SerializationInfo with information about the exception.
(Overrides ExceptionGetObjectData(SerializationInfo, StreamingContext))
Public methodGetType
(Inherited from Exception)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodToString
(Inherited from Exception)
Top
Events
 NameDescription
Protected eventSerializeObjectState
(Inherited from Exception)
Top
Remarks
The exception that is thrown when an IMAP command fails. Unlike a ImapProtocolException, a ImapCommandException does not require the ImapClient to be reconnected.
See Also