語言

Pkcs8PrivateKeyInfo.TryEncode(Span<Byte>, Int32) 方法

定義

嘗試將此實例的屬性資料編碼為 PKCS#8 PrivateKeyInfo,並將結果寫入提供的緩衝區。

public:
 bool TryEncode(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryEncode(Span<byte> destination, out int bytesWritten);
member this.TryEncode : Span<byte> * int -> bool
Public Function TryEncode (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean

參數

destination
Span<Byte>

該位元組長度用於接收 PKCS#8 PrivateKeyInfo 資料。

bytesWritten
Int32

當此方法回傳時,包含一個表示寫入 的 destination位元組數的值。 此參數被視為未初始化。

傳回

true如果 destination 足夠大以接收輸出;否則,。 false

適用於

另請參閱