'Declaration
Public Overloads Shared Function Find( _ ByVal collection As X509Certificate2Collection, _ ByVal thumbprint As String, _ ByVal subjectName As String, _ ByVal needPrivateKey As Boolean _ ) As X509Certificate2
'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)
public static X509Certificate2 Find( X509Certificate2Collection collection, string thumbprint, string subjectName, bool needPrivateKey )
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].