Visual Basic (Usage) | ![]() |
---|---|
Dim collection As X509Certificate2Collection Dim thumbprint As String Dim subjectName As String Dim needPrivateKey As Boolean Dim value As X509Certificate2 value = CertificateIdentifier.Find(collection, thumbprint, subjectName, needPrivateKey) |
C# | |
---|---|
public static X509Certificate2 Find( X509Certificate2Collection collection, string thumbprint, string subjectName, bool needPrivateKey ) |
Parameters
- collection
- The collection.
- thumbprint
- The thumbprint of the certificate.
- subjectName
- Subject name of the certificate.
- needPrivateKey
- if set to
true
[need private key].
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x