Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CertificateIdentifier Dim needPrivateKey As Boolean Dim value As X509Certificate2 value = instance.Find(needPrivateKey) |
C# | |
---|---|
public X509Certificate2 Find( bool needPrivateKey ) |
Parameters
- needPrivateKey
- if set to
true
the returned certificate must contain the private key.
Return Value
An instance of the System.Security.Cryptography.X509Certificates.X509Certificate2 that is emebeded by this instance or find it in the selected strore pointed out by the StorePath using selected SubjectName.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x