X509Certificate2Collection.Export Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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)
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
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)
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
Informasi sertifikat X.509 dalam array byte.
Keterangan
Metode ini mendukung tipe isi yang tidak memerlukan kata sandi.