Rfc3161TimestampRequest.TryDecode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試將 的內容 encodedBytes 解讀為 DER 編碼的時間戳請求。
public:
static bool TryDecode(ReadOnlyMemory<System::Byte> encodedBytes, [Runtime::InteropServices::Out] System::Security::Cryptography::Pkcs::Rfc3161TimestampRequest ^ % request, [Runtime::InteropServices::Out] int % bytesConsumed);
public static bool TryDecode(ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest? request, out int bytesConsumed);
public static bool TryDecode(ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest request, out int bytesConsumed);
static member TryDecode : ReadOnlyMemory<byte> * Rfc3161TimestampRequest * int -> bool
Public Shared Function TryDecode (encodedBytes As ReadOnlyMemory(Of Byte), ByRef request As Rfc3161TimestampRequest, ByRef bytesConsumed As Integer) As Boolean
參數
- encodedBytes
- ReadOnlyMemory<Byte>
該緩衝區包含 DER 編碼的時間戳請求。
- request
- Rfc3161TimestampRequest
當此方法回傳時,解碼成功時會請求成功解碼的時間戳記請求,若解碼失敗 null 則是。 此參數被視為未初始化。
- bytesConsumed
- Int32
當此方法返回時,從 中讀取 encodedBytes的位元組數為 。 此參數被視為未初始化。
傳回
true 若 encodedBytes 成功被解讀為時間戳請求;否則, false。