X509Certificate2Collection.TryExportCertificatePems メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PEM としてエンコードされたパブリック X.509 証明書のエクスポートを試みます。
public:
bool TryExportCertificatePems(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportCertificatePems (Span<char> destination, out int charsWritten);
member this.TryExportCertificatePems : Span<char> * int -> bool
Public Function TryExportCertificatePems (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
パラメーター
- charsWritten
- Int32
このメソッドが返されるときに、書き込まれた destination文字数の合計です。
戻り値
trueエンコードされた VM を受信するのに十分な大きさだった場合は .。それ以外の場合destinationfalseは。
例外
証明書が破損しているか、無効な状態であるか、PEM にエクスポートできませんでした。
注釈
A PEM-encoded X.509 certificate collection will contain certificates
where each certificate begins with -----BEGIN CERTIFICATE-----
and ends with -----END CERTIFICATE-----, with the base64 encoded DER
contents of the certificate between the PEM boundaries. Each certificate is
separated by a single line-feed character.
Certificates are encoded according to the IETF RFC 7468 "strict" encoding rules.