Simplifies the selection of a card application.

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

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

Parameters

vbApplicationID
Type: byte[]

The application ID of the application to be selected.

Return Value

Type: CardResponseAPDU

In any case, the response APDU of the selection command will be returned to the caller.

Exception type Condition

ArgumentNullException

The parameter vbApplicationID was null.

ArgumentException

The vbApplicationID byte array was empty or longer than 256 bytes.

CardTerminalException

Thrown when a Card Terminal error condition occurs.

An attempt is made to select the card application with the given application ID (AID). The Selection is attempted using the most simple ISO 7816-4 SELECT command: 'CLA A4 04 0C'.

The class byte for the SELECT command will be taken from the CLA property.

.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