Returns the Historical Bytes of the ATR of the card.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Function GetHistoricalBytes() As Byte()
This language is not supported or no code example is available.
public byte[] GetHistoricalBytes()
This language is not supported or no code example is available.
public:  
array< Byte >^ GetHistoricalBytes()
This language is not supported or no code example is available.
public function GetHistoricalBytes() : byte[];
This language is not supported or no code example is available.

Return Value

Type: byte[]

If no ATR is present in this CardHandle, or the ATR cannot be parsed, then null is returned. If an ATR is present and can be parsed according to ISO 7816-3, then the Historical Bytes are extracted from it and are returned. If the ATR is correct, but does not contain any Historical Bytes, then an empty byte array is returned. The max length of the returned byte array is 15.

If the final check byte TCK is present, then it is verified against the computed check sum. If the check fails, then null is returned, too.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0