Finds a certificate with a subject that contains a specified string.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| Visual Basic |
|---|
Public Function FindCertificateBySubjectString ( _
subject As String, _
previous As Certificate _
) As Certificate |
Return Value
A
Certificate with a matching subject string -or- a null reference (
Nothing in Visual Basic) if no matching certificate could be found in the store.
Remarks
Exceptions
| Exception | Condition |
|---|
| System..::..ArgumentNullException | subject is a null reference (Nothing in Visual Basic). |
| System..::..ArgumentException | subject is invalid. |
See Also