Generic ISO 7816-4 command for reading data from the currently selected elementary file with transparent structure.

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

Public Function ReadBinary( _ 
ByVal nOffset As Integer, _ 
ByVal nLength As Byte
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU ReadBinary( 
int nOffset
byte nLength 
)
This language is not supported or no code example is available.
public:  
CardResponseAPDU^ ReadBinary( 
int nOffset
Byte nLength 
)
This language is not supported or no code example is available.
public function ReadBinary( 
nOffset : int
nLength : byte 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

nOffset
Type: int

Byte offset where to begin reading. The offset must be in the range from 0 through hex '7FFF'.

nLength
Type: byte

Number of bytes to read. If this is zero, then all available bytes up to the end of the file are read.

Return Value

Type: CardResponseAPDU

The complete response APDU is returned. The property CardResponseAPDU.IsSuccessful can be used to check whether the data was read successfully. The read data is available through the CardResponseAPDU.GetData method.

Exception type Condition

ArgumentOutOfRangeException

The given parameter nOffset was invalid.

CardTerminalException

Thrown when a Card Terminal error condition occurs.

This method uses the following generic command APDU: CLA 'B0' HI LO LE, where HI and LO are the high and low byte of the given offset and LE is the given length byte.

.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