Sends the command APDU to the given card terminal slot and returns the response APDU from the inserted card.

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

Function SendCommand( _ 
ByVal nSlot As Integer, _ 
ByVal aCommand As CardCommandAPDU
) As CardResponseAPDU
This language is not supported or no code example is available.
CardResponseAPDU SendCommand( 
int nSlot
CardCommandAPDU aCommand 
)
This language is not supported or no code example is available.
 
CardResponseAPDU^ SendCommand( 
int nSlot
CardCommandAPDU^ aCommand 
)
This language is not supported or no code example is available.
function SendCommand( 
nSlot : int
aCommand : CardCommandAPDU 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

nSlot
Type: int

Slot number of card terminal slot of interest. The primary slot is identified by the slot number zero. The slot number must be in the range from zero through Slots-1.

aCommand
Type: CardCommandAPDU

Complete command APDU to be transmitted. This must not be null.

Return Value

Type: CardResponseAPDU

Returns the response APDU from the inserted card. This is never null. If no response APDU was received for whatever reason, then a CardTerminalException is thrown.

If the connected card type is a memory card, then an application uses this method in order to send command APDUs according to the MCT specification part 7: IC Cards with Synchronous Transmission; Usage of Interindustry Commands.

.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