X509Certificate2Collection.Export Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Exportuje informace o certifikátu X.509 na základě typu obsahu do pole bajtů.
Přetížení
Export(X509ContentType, String) |
Exportuje informace o certifikátu X.509 do pole bajtů pomocí hesla. |
Export(X509ContentType) |
Exportuje informace o certifikátu X.509 do pole bajtů. |
Export(X509ContentType, String)
Exportuje informace o certifikátu X.509 do pole bajtů pomocí hesla.
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()
Parametry
- contentType
- X509ContentType
Podporovaný X509ContentType objekt.
- password
- String
Řetězec, který slouží k ochraně pole bajtů.
Návraty
- Byte[]
Informace o certifikátu X.509 v bajtovém poli
Výjimky
Certifikát je nečitelný, obsah je neplatný nebo v případě certifikátu vyžadujícího heslo nelze privátní klíč exportovat, protože zadané heslo bylo nesprávné.
Poznámky
Tato metoda podporuje následující X509ContentType typy:
Platí pro
Export(X509ContentType)
Exportuje informace o certifikátu X.509 do pole bajtů.
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()
Parametry
- contentType
- X509ContentType
Podporovaný X509ContentType objekt.
Návraty
- Byte[]
Informace o certifikátu X.509 v bajtovém poli
Poznámky
Tato metoda podporuje typy obsahu, které nevyžadují heslo.