Pkcs12Builder.TryEncode(Span<Byte>, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試將封閉的 PFX 內容編碼到提供的緩衝區中。
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
參數
- bytesWritten
- Int32
當此方法回傳時,包含一個表示寫入 的 destination位元組數的值。 此參數被視為未初始化。
傳回
true如果 destination 足夠大以接收輸出;否則,。 false
例外狀況
PFX 沒有密封(IsSealed 是 false)。