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
C# |
---|
public Certificate FindCertificateBySubjectString(
string subject
) |
Visual Basic |
---|
Public Function FindCertificateBySubjectString ( _
subject As String _
) As Certificate |
Visual C++ |
---|
public:
Certificate^ FindCertificateBySubjectString(
String^ subject
) |
Parameters
- subject
- Type: System..::..String
The string to search for.
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