X509Certificate2Collection.Export Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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)
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
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)
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
X.509-Zertifikatinformationen in einem Bytearray.
Hinweise
Diese Methode unterstützt Inhaltstypen, für die kein Kennwort erforderlich ist.