X509Certificate ChainContains Method
Check if the chain contains the specified certificate.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the specified certificate exists; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public bool Contains(
X509Certificate certificate
)Parameters
- certificate X509Certificate
- The certificate.
Return Value
Booleanif the specified certificate exists; otherwise, .
Implements
ICollectionTContains(T)Remarks
Determines whether the certificate chain contains the specified certificate.
Exceptions
| ArgumentNullException | certificate is . |