Export (0) Print
Expand All

X509Certificate.Import Method (Byte[])

Populates the X509Certificate object with data from a byte array.

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

[ComVisibleAttribute(false)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.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

Show:
© 2015 Microsoft