Bagikan melalui


Rfc3161TimestampTokenInfo.TryDecode Metode

Definisi

Mendekode nilai TSTInfo yang dikodekan.

public:
 static bool TryDecode(ReadOnlyMemory<System::Byte> encodedBytes, [Runtime::InteropServices::Out] System::Security::Cryptography::Pkcs::Rfc3161TimestampTokenInfo ^ % timestampTokenInfo, [Runtime::InteropServices::Out] int % bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo? timestampTokenInfo, out int bytesConsumed);
public static bool TryDecode (ReadOnlyMemory<byte> encodedBytes, out System.Security.Cryptography.Pkcs.Rfc3161TimestampTokenInfo timestampTokenInfo, out int bytesConsumed);
static member TryDecode : ReadOnlyMemory<byte> * Rfc3161TimestampTokenInfo * int -> bool
Public Shared Function TryDecode (encodedBytes As ReadOnlyMemory(Of Byte), ByRef timestampTokenInfo As Rfc3161TimestampTokenInfo, ByRef bytesConsumed As Integer) As Boolean

Parameter

encodedBytes
ReadOnlyMemory<Byte>

Buffer input atau sumber.

timestampTokenInfo
Rfc3161TimestampTokenInfo

Ketika metode ini mengembalikan true, data yang didekodekan. Ketika metode ini mengembalikan false, nilainya adalah null, yang berarti data tidak dapat didekodekan.

bytesConsumed
Int32

Jumlah byte yang digunakan untuk pendekodean.

Mengembalikan

true jika operasi berhasil; false Sebaliknya.

Berlaku untuk