get_HasPrivateKey()

X509Certificate2::get_HasPrivateKey() const method

Checks whether the certificate has private key.

bool System::Security::Cryptography::X509Certificates::X509Certificate2::get_HasPrivateKey() const

Return Value

True if private key existst, false otherwise.

See Also