X509Certificate2Collection.Export Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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)
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
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)
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
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.