X509Certificate2Collection.Export Methode

Definition

Exportiert X.509-Zertifikatinformationen basierend auf dem Inhaltstyp in ein Bytearray.

Überlädt

Name Beschreibung
Export(X509ContentType, String)

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

Export(X509ContentType)

Exportiert X.509-Zertifikatinformationen in ein Bytearray.

Export(X509ContentType, String)

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

Exportiert X.509-Zertifikatinformationen 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 Zeichenfolge zum Schutz des Bytearrays.

Gibt zurück

Byte[]

X.509-Zertifikatinformationen in einem Bytearray.

Ausnahmen

Das Zertifikat ist unlesbar, der Inhalt ist ungültig, oder im Falle eines Zertifikats, das ein Kennwort erfordert, konnte der private Schlüssel nicht exportiert werden, da das angegebene 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
Quelle:
X509Certificate2Collection.cs
Quelle:
X509Certificate2Collection.cs

Exportiert X.509-Zertifikatinformationen 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-Zertifikatinformationen in einem Bytearray.

Hinweise

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

Gilt für: