Generic ISO 7816-4 command for reading data from a elementary file (EF) with transparent structure. The EF will be implicitly selected through a short file identifier (SFI).

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

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

Parameters

nSFI
Type: byte

The short file identifier (SFI) of the EF from which the binary data shall be read. A valid SFI must be in the range from zero through 31.

nOffset
Type: byte

Byte offset where to begin reading.

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 nSFI is invalid.

This method uses the following generic command APDU: CLA 'B0' '80'+SFI OF LE, where SFI is the short file identifier, and OF is 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