Generic ISO 7816-4 command for selecting an elementary file EF.

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

Public Function SelectFile( _ 
ByVal nFileID As Integer
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU SelectFile( 
int nFileID 
)
This language is not supported or no code example is available.
public:  
CardResponseAPDU^ SelectFile( 
int nFileID 
)
This language is not supported or no code example is available.
public function SelectFile( 
nFileID : int 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

nFileID
Type: int

The file ID (FID) of the EF to be selected. The file ID must be in the range from hex '0000' through hex 'FFFF'.

Return Value

Type: CardResponseAPDU

The complete response APDU is returned. The property CardResponseAPDU.IsSuccessful can be used to check whether the file was selected successfully.

Exception type Condition

ArgumentOutOfRangeException

The given nFileID was outside the permitted range.

CardTerminalException

Thrown when a Card Terminal error condition occurs.

The file to be selected must be an elementary file (EF).

This method uses the following generic command APDU: CLA 'A4' '02' '0C' FILEID, where FILEID is the given two byte file ID.

.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