X509Certificate2Collection.Export Metoda

Definicja

Eksportuje informacje o certyfikacie X.509 na podstawie typu zawartości do tablicy bajtów.

Przeciążenia

Export(X509ContentType, String)

Eksportuje informacje o certyfikacie X.509 do tablicy bajtów przy użyciu hasła.

Export(X509ContentType)

Eksportuje informacje o certyfikacie X.509 do tablicy bajtów.

Export(X509ContentType, String)

Eksportuje informacje o certyfikacie X.509 do tablicy bajtów przy użyciu hasła.

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()

Parametry

contentType
X509ContentType

Obsługiwany X509ContentType obiekt.

password
String

Ciąg używany do ochrony tablicy bajtów.

Zwraca

Byte[]

Informacje o certyfikacie X.509 w tablicy bajtów.

Wyjątki

Certyfikat jest nieczytelny, zawartość jest nieprawidłowa lub w przypadku certyfikatu wymagającego hasła nie można wyeksportować klucza prywatnego, ponieważ podane hasło było niepoprawne.

Uwagi

Ta metoda obsługuje następujące X509ContentType typy:

Dotyczy

Export(X509ContentType)

Eksportuje informacje o certyfikacie X.509 do tablicy bajtów.

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()

Parametry

contentType
X509ContentType

Obsługiwany X509ContentType obiekt.

Zwraca

Byte[]

Informacje o certyfikacie X.509 w tablicy bajtów.

Uwagi

Ta metoda obsługuje typy zawartości, które nie wymagają hasła.

Dotyczy