X509CertificateChainIndexOf Method

Get the index of a certificate within the chain.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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)

Remarks

Finds the index of the specified certificate, if it exists.

Exceptions

ArgumentNullException certificate is .

See Also