Click or drag to resize
MimeKit

PrivateKeyNotFoundException Class

An exception that is thrown when a private key could not be found for a specified mailbox or key id.
Inheritance Hierarchy
SystemObject
  SystemException
    MimeKit.CryptographyPrivateKeyNotFoundException

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
[SerializableAttribute]
public class PrivateKeyNotFoundException : Exception

The PrivateKeyNotFoundException type exposes the following members.

Constructors
 NameDescription
Public methodPrivateKeyNotFoundException(Int64, String) Initialize a new instance of the PrivateKeyNotFoundException class.
Public methodPrivateKeyNotFoundException(MailboxAddress, String) Initialize a new instance of the PrivateKeyNotFoundException class.
Protected methodPrivateKeyNotFoundException(SerializationInfo, StreamingContext)Obsolete.
Initialize a new instance of the PrivateKeyNotFoundException class.
Public methodPrivateKeyNotFoundException(String, String) Initialize a new instance of the PrivateKeyNotFoundException 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 propertyKeyId Gets the key id that could not be found.
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
An exception that is thrown when a private key could not be found for a specified mailbox or key id.
See Also