Mentalis.org Security Library documentation

Certificate.GetPublicKeyLength Method 

Returns the length of the public key of the X.509v3 certificate.

[Visual Basic]
Public Function GetPublicKeyLength() As Integer
[C#]
public int GetPublicKeyLength();

Return Value

Returns the length of the public key in bits. If unable to determine the key's length, returns zero.

See Also

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