Click or drag to resize
MimeKit

FolderNotOpenException Class

The exception that is thrown when a folder is not open.
Inheritance Hierarchy
SystemObject
  SystemException
    SystemSystemException
      SystemInvalidOperationException
        MailKitFolderNotOpenException

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

The FolderNotOpenException type exposes the following members.

Constructors
 NameDescription
Protected methodFolderNotOpenException(SerializationInfo, StreamingContext)Obsolete.
Initializes a new instance of the FolderNotOpenException class.
Public methodFolderNotOpenException(String, FolderAccess) Initializes a new instance of the FolderNotOpenException class.
Public methodFolderNotOpenException(String, FolderAccess, String) Initializes a new instance of the FolderNotOpenException class.
Public methodFolderNotOpenException(String, FolderAccess, String, Exception) Initializes a new instance of the FolderNotOpenException class.
Top
Properties
 NameDescription
Public propertyData
(Inherited from Exception)
Public propertyFolderAccess Get the minimum folder access required by the operation.
Public propertyFolderName Get the name of the folder.
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 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
This exception is thrown when an operation on a folder could not be completed due to the folder being in a closed state. For example, the GetMessage(UniqueId, CancellationToken, ITransferProgress) method will throw a FolderNotOpenException if the folder is not current open.
See Also