X509Certificate Constructor (
.NET Framework 4.6 and 4.5
Initializes a new instance of the
class defined from a sequence of bytes representing an X.509v3 certificate. X509Certificate
data: byte -> X509Certificate
Parameters data Type: System .Byte 
A byte array containing data from an X.509 certificate.
Exception Condition CryptographicException
An error with the certificate occurs. For example:
The certificate file does not exist.
The certificate is invalid.
The certificate's password is incorrect.
rawData parameter is . a null reference ( Nothing in Visual Basic)
The length of the
rawData parameter is 0.
ASN.1 DER is the only certificate format supported by this class.
If you create an
certificate by specifying a PKCS7 signed file store for X509Certificate data, the is created for the certificate that signed the store rather than for any of the certificates within the store. X509Certificate
The following example loads an X.509 certificate file into an
object, exports the certificate as a byte array, and then imports the byte array into another X509Certificate object. X509Certificate
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8