Click or drag to resize
MimeKit

MessageNotFoundException Class

The exception that is thrown when a message (or body part) could not be found.
Inheritance Hierarchy
SystemObject
  SystemException
    MailKitMessageNotFoundException

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
[SerializableAttribute]
public class MessageNotFoundException : Exception

The MessageNotFoundException type exposes the following members.

Constructors
 NameDescription
Public methodMessageNotFoundException(String) Initializes a new instance of the MessageNotFoundException class.
Protected methodMessageNotFoundException(SerializationInfo, StreamingContext)Obsolete.
Initializes a new instance of the MessageNotFoundException class.
Public methodMessageNotFoundException(String, Exception) Initializes a new instance of the MessageNotFoundException 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 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
(Inherited from Exception)
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
This exception is thrown by methods such as IMailFolder.GetMessage, IMailFolder.GetBodyPart, or IMailFolder.GetStream when the server's response does not contain the message, body part, or stream data requested.
See Also