Mentalis.org Security Library documentation

CertificateStore.FindCertificateByKeyIdentifier Method 

Finds a certificate with a matching key identifier.

[Visual Basic]
Public Function FindCertificateByKeyIdentifier( _
   ByVal keyID As Byte() _
) As Certificate
[C#]
public Certificate FindCertificateByKeyIdentifier(
   byte[] keyID
);

Parameters

keyID
The key identifier to search for.

Return Value

The Certificate with the matching key identifier -or- a null reference (Nothing in Visual Basic) if no matching certificate could be found in the store.

Exceptions

Exception TypeCondition
ArgumentNullExceptionkeyID is a null reference (Nothing in Visual Basic).
ArgumentExceptionkeyID is invalid.

See Also

CertificateStore Class | CertificateStore Members | Org.Mentalis.Security.Certificates Namespace