X509Certificate2Collection.Export Méthode

Définition

Exporte les informations de certificat X.509 en fonction du type de contenu dans un tableau d’octets.

Surcharges

Nom Description
Export(X509ContentType, String)

Exporte les informations de certificat X.509 dans un tableau d’octets à l’aide d’un mot de passe.

Export(X509ContentType)

Exporte les informations de certificat X.509 dans un tableau d’octets.

Export(X509ContentType, String)

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

Exporte les informations de certificat X.509 dans un tableau d’octets à l’aide d’un mot de passe.

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

Paramètres

contentType
X509ContentType

Objet pris en charge X509ContentType .

password
String

Chaîne utilisée pour protéger le tableau d’octets.

Retours

Byte[]

Informations de certificat X.509 dans un tableau d’octets.

Exceptions

Le certificat n’est pas lisible, le contenu n’est pas valide ou, dans le cas d’un certificat nécessitant un mot de passe, la clé privée n’a pas pu être exportée, car le mot de passe fourni était incorrect.

Remarques

Cette méthode prend en charge les types suivants X509ContentType :

S’applique à

Export(X509ContentType)

Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs
Source:
X509Certificate2Collection.cs

Exporte les informations de certificat X.509 dans un tableau d’octets.

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

Paramètres

contentType
X509ContentType

Objet pris en charge X509ContentType .

Retours

Byte[]

Informations de certificat X.509 dans un tableau d’octets.

Remarques

Cette méthode prend en charge les types de contenu qui ne nécessitent pas de mot de passe.

S’applique à