System::Security::Cryptography::X509Certificates::X509Certificate2::get_HasPrivateKey 方法

X509Certificate2::get_HasPrivateKey method

检查证书是否具有私钥。

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

ReturnValue

如果私钥存在,则为 True;否则为 False。

另见