X509CertificateChainContains Method

Check if the chain contains the specified certificate.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public bool Contains(
	X509Certificate certificate
)

Parameters

certificate  X509Certificate
The certificate.

Return Value

Boolean
if the specified certificate exists; otherwise, .

Implements

ICollectionTContains(T)

Remarks

Determines whether the certificate chain contains the specified certificate.

Exceptions

ArgumentNullException certificate is .

See Also