CertificateHasPrivateKey Property
Gets whether the certificate has a private key.

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

Property Value

Type: Boolean
true if certificate includes the private key; otherwise, false.
Remarks
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.
Examples
The example is available in Certificate topic.
See Also