Certificate.HasPrivateKey Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the certificate has a private key.
public:
property bool HasPrivateKey { bool get(); };
bool HasPrivateKey();
public bool HasPrivateKey { get; }
var boolean = certificate.hasPrivateKey;
Public ReadOnly Property HasPrivateKey As Boolean
Property Value
Boolean
bool
True if the certificate has a private key; otherwise false.