Generic ISO 7816-4 command for selecting an elementary file EF.
Namespace:
CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
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.
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: CardResponseAPDUThe complete response APDU is returned. The property CardResponseAPDU.IsSuccessful can be used to check whether the file was selected successfully.
Exception type | Condition |
---|---|
The given nFileID was outside the permitted range. |
|
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.