Share via


X509Certificate2Collection.Export Método

Definición

Exporta a una matriz de bytes información del certificado X.509 basada en el tipo de contenido.

Sobrecargas

Export(X509ContentType, String)

Exporta a una matriz de bytes información del certificado X.509 utilizando una contraseña.

Export(X509ContentType)

Exporta información del certificado X.509 a una matriz de bytes.

Export(X509ContentType, String)

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

Exporta a una matriz de bytes información del certificado X.509 utilizando una contraseña.

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

Parámetros

contentType
X509ContentType

Objeto X509ContentType compatible.

password
String

Cadena utilizada para proteger la matriz de bytes.

Devoluciones

Byte[]

Información del certificado X.509 en una matriz de bytes.

Excepciones

El certificado es ilegible, el contenido no es válido o, si se trata de un certificado que requiere contraseña, no se ha podido exportar la clave privada porque la contraseña proporcionada era incorrecta.

Comentarios

Este método admite los siguientes X509ContentType tipos:

Se aplica a

Export(X509ContentType)

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

Exporta información del certificado X.509 a una matriz de bytes.

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

Parámetros

contentType
X509ContentType

Objeto X509ContentType compatible.

Devoluciones

Byte[]

Información del certificado X.509 en una matriz de bytes.

Comentarios

Este método admite tipos de contenido que no requieren una contraseña.

Se aplica a