Click or drag to resize
MimeKit

X509CertificateChainIndexOf Method

Gets the index of the specified certificate within the chain.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public int IndexOf(
	X509Certificate certificate
)

Parameters

certificate  X509Certificate
The certificate to get the index of.

Return Value

Int32
The index of the specified certificate if found; otherwise -1.

Implements

IListTIndexOf(T)
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
Remarks
Finds the index of the specified certificate, if it exists.
See Also