Certificate.HasPrivateKey Property
CertificateHasPrivateKey Property
Gets whether the certificate has a private key.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public bool HasPrivateKey { get; }

Property Value

Type: Boolean
true if certificate includes the private key; otherwise, false.
Certificates with private key can be using for all S/MIME operations (signing, encryption, checking a signature, decryption). Public certificates (without private key) can only be used for encryption and checking a signature.
The example is available in Certificate topic.
See Also