X509Certificate.Import Method (Byte[])

Populates the X509Certificate object with data from a byte array.

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

[SecuritySafeCriticalAttribute]
[ComVisibleAttribute(false)]
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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: