Return Value
This method never returns null
(Nothing
in Visual Basic).
This method never returns null
(Nothing
in Visual Basic).
Exception | Description |
---|---|
System.Security.Cryptography.CryptographicException | An error occurred during a cryptographic operation. This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately. |
This method has been introduced as an alternative way to achieve the functionality of System.Security.Cryptography.X509Certificates.X509Certificate.GetSerialNumber for some COM consumers (such as Microsoft C++ native COM support #import), where the automatically generated getter function for the System.Security.Cryptography.X509Certificates.X509Certificate2.SerialNumber property becomes GetSerialNumber, causing a conflict.