X509Certificate.Import Method (Byte[])

July 28, 2014

Populates the X509Certificate object with data from a byte array.

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

public virtual void Import(
	byte[] rawData
)

Parameters

rawData
Type: System.Byte []
A byte array containing data from an X.509 certificate.

ExceptionCondition
ArgumentException

The rawData parameter is null.

-or-

The length of the rawData parameter is 0.

This method can be used to take the raw byte array of an X.509 certificate and populate the X509Certificate object with its associated values.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft