X509Certificate.GetSerialNumber Method

July 28, 2014

Returns the serial number of the X.509 version 3 certificate.

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

public virtual byte[] GetSerialNumber()

Return Value

Type: System.Byte []
The serial number of the X.509 certificate as an array of bytes.

ExceptionCondition
CryptographicException

The certificate context is invalid.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft