Import Method (Byte[])
Collapse the table of content
Expand the table of content

X509Certificate.Import Method (Byte[])

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft