RSA.TryExportRSAPublicKeyPem(Span<Char>, Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PEM でエンコードされた PKCS#1 RSAPublicKey 形式の現在のキーを、指定されたバッファーにエクスポートしようとします。
public:
bool TryExportRSAPublicKeyPem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportRSAPublicKeyPem (Span<char> destination, out int charsWritten);
member this.TryExportRSAPublicKeyPem : Span<char> * int -> bool
Public Function TryExportRSAPublicKeyPem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
パラメーター
- charsWritten
- Int32
このメソッドが返されるときに、書き込まれた destination
文字数を示す値が格納されます。 このパラメーターは初期化前として処理されます。
戻り値
destination
が出力を受け入れるだけの十分な大きさの場合は true
。それ以外の場合は false
。
例外
キーをエクスポートすることができませんでした。
注釈
A PEM-encoded PKCS#1 RSAPublicKey will begin with
-----BEGIN RSA PUBLIC KEY-----
and end with
-----END RSA PUBLIC KEY-----
, with the base64 encoded DER
contents of the key between the PEM boundaries.
The PEM is encoded according to the IETF RFC 7468 "strict"
encoding rules.