Share via


X509Certificate2Collection.Export Metode

Definisi

Mengekspor informasi sertifikat X.509 berdasarkan jenis konten ke dalam array byte.

Overload

Export(X509ContentType, String)

Mengekspor informasi sertifikat X.509 ke dalam array byte menggunakan kata sandi.

Export(X509ContentType)

Mengekspor informasi sertifikat X.509 ke dalam array byte.

Export(X509ContentType, String)

Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs

Mengekspor informasi sertifikat X.509 ke dalam array byte menggunakan kata sandi.

public:
 cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType, System::String ^ password);
public byte[]? Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType, string? password);
public byte[] Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType, string password);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType * string -> byte[]
Public Function Export (contentType As X509ContentType, password As String) As Byte()

Parameter

contentType
X509ContentType

Objek yang didukung X509ContentType .

password
String

String yang digunakan untuk melindungi array byte.

Mengembalikan

Byte[]

Informasi sertifikat X.509 dalam array byte.

Pengecualian

Sertifikat tidak dapat dibaca, konten tidak valid atau, dalam kasus sertifikat yang memerlukan kata sandi, kunci privat tidak dapat diekspor karena kata sandi yang disediakan salah.

Keterangan

Metode ini mendukung jenis berikut X509ContentType :

Berlaku untuk

Export(X509ContentType)

Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs
Sumber:
X509Certificate2Collection.cs

Mengekspor informasi sertifikat X.509 ke dalam array byte.

public:
 cli::array <System::Byte> ^ Export(System::Security::Cryptography::X509Certificates::X509ContentType contentType);
public byte[]? Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType);
public byte[] Export (System.Security.Cryptography.X509Certificates.X509ContentType contentType);
member this.Export : System.Security.Cryptography.X509Certificates.X509ContentType -> byte[]
Public Function Export (contentType As X509ContentType) As Byte()

Parameter

contentType
X509ContentType

Objek yang didukung X509ContentType .

Mengembalikan

Byte[]

Informasi sertifikat X.509 dalam array byte.

Keterangan

Metode ini mendukung tipe isi yang tidak memerlukan kata sandi.

Berlaku untuk