X509Certificate2Collection.TryExportCertificatePems メソッド

定義

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

パラメーター

destination
Span<Char>

PEM でエンコードされた証明書を受信するバッファー。

charsWritten
Int32

このメソッドが返されるときに、書き込まれた destination文字数の合計です。

戻り値

Boolean

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.

適用対象