X509Certificate2Collection.Export Methode

Definition

Exportiert X.509-Zertifikatsinformationen auf der Basis des Inhaltstyps in ein Bytearray.

Überlädt

Export(X509ContentType, String)

Exportiert X.509-Zertifikatsinformationen mithilfe eines Kennworts in ein Bytearray.

Export(X509ContentType)

Exportiert X.509-Zertifikatsinformationen in ein Bytearray.

Export(X509ContentType, String)

Quelle:
X509Certificate2Collection.cs
Quelle:
X509Certificate2Collection.cs
Quelle:
X509Certificate2Collection.cs

Exportiert X.509-Zertifikatsinformationen mithilfe eines Kennworts in ein Bytearray.

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

Ein unterstütztes X509ContentType-Objekt.

password
String

Eine zum Schutz des Bytearrays verwendete Zeichenfolge.

Gibt zurück

Byte[]

X.509-Zertifikatsinformationen in einem Bytearray.

Ausnahmen

Das Zertifikat kann nicht gelesen werden, sein Inhalt ist ungültig oder – im Fall eines Zertifikats, für das ein Kennwort erforderlich ist – sein Privatschlüssel konnte nicht exportiert werden, da das bereitgestellte Kennwort falsch war.

Hinweise

Diese Methode unterstützt die folgenden X509ContentType Typen:

Gilt für:

Export(X509ContentType)

Quelle:
X509Certificate2Collection.cs
Quelle:
X509Certificate2Collection.cs
Quelle:
X509Certificate2Collection.cs

Exportiert X.509-Zertifikatsinformationen in ein Bytearray.

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

Ein unterstütztes X509ContentType-Objekt.

Gibt zurück

Byte[]

X.509-Zertifikatsinformationen in einem Bytearray.

Hinweise

Diese Methode unterstützt Inhaltstypen, für die kein Kennwort erforderlich ist.

Gilt für: