X509Certificate2Collection.Export Metodo

Definizione

Esporta le informazioni sui certificati X.509 in base al tipo di contenuto in una matrice di byte.

Overload

Export(X509ContentType, String)

Esporta le informazioni sui certificati X.509 in una matrice di byte tramite una password.

Export(X509ContentType)

Esporta le informazioni sui certificati X.509 in una matrice di byte.

Export(X509ContentType, String)

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

Esporta le informazioni sui certificati X.509 in una matrice di byte tramite una password.

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

Parametri

contentType
X509ContentType

Oggetto X509ContentType supportato.

password
String

Stringa utilizzata per proteggere la matrice di byte.

Restituisce

Byte[]

Informazioni sui certificati X.509 in una matrice di byte.

Eccezioni

Il certificato non è leggibile, il contenuto non è valido oppure, nel caso di un certificato che richiede una password, la chiave privata non è stata esportata perché la password specificata non è corretta.

Commenti

Questo metodo supporta i tipi seguenti X509ContentType :

Si applica a

Export(X509ContentType)

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

Esporta le informazioni sui certificati X.509 in una matrice di byte.

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

Parametri

contentType
X509ContentType

Oggetto X509ContentType supportato.

Restituisce

Byte[]

Informazioni sui certificati X.509 in una matrice di byte.

Commenti

Questo metodo supporta i tipi di contenuto che non richiedono una password.

Si applica a