X509Certificate2.HasPrivateKey Property

Gets a value that indicates whether an X509Certificate2 object contains a private key.

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in system.security.dll)

Syntax

public bool HasPrivateKey { get; }

Property Value

true if the X509Certificate2 object contains a private key; otherwise, false.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2 Class
X509Certificate2 Members
System.Security.Cryptography.X509Certificates Namespace