Finds a certificate with a matching key identifier.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public Certificate FindCertificateByKeyIdentifier(
byte[] keyID
) |
Visual Basic |
---|
Public Function FindCertificateByKeyIdentifier ( _
keyID As Byte() _
) As Certificate |
Visual C++ |
---|
public:
Certificate^ FindCertificateByKeyIdentifier(
array<unsigned char>^ keyID
) |
Parameters
- keyID
- Type: array<System..::..Byte>[]()[][]
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 | Condition |
---|
System..::..ArgumentNullException | keyID is a null reference (Nothing in Visual Basic). |
System..::..ArgumentException | keyID is invalid. |
See Also