Mentalis.org Security Library documentation

Certificate.HasPrivateKey Method 

Checks whether the Certificate has a private key associated with it.

[Visual Basic]
Public Function HasPrivateKey() As Boolean
[C#]
public bool HasPrivateKey();

Return Value

true if the certificate has a private key associated with it, false otherwise.

See Also

Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace