Sends the command APDU to the card and returns its response APDU.

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

Public Function SendCommand( _ 
ByVal aCommandAPDU As CardCommandAPDU
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU SendCommand( 
CardCommandAPDU aCommandAPDU 
)
This language is not supported or no code example is available.
public:  
CardResponseAPDU^ SendCommand( 
CardCommandAPDU^ aCommandAPDU 
)
This language is not supported or no code example is available.
public function SendCommand( 
aCommandAPDU : CardCommandAPDU 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

aCommandAPDU
Type: CardCommandAPDU

The command APDU to be sent. Must not be null

Return Value

Type: CardResponseAPDU

The response APDU from the card.

Exception type Condition

ArgumentNullException

Thrown when one or more required arguments are null.

The PC/SC Workgroup API is designed to send TPDUs and not APDUs. This means that this method has to and does handle the correct transmission of APDUs over T=0 or T=1 TPDUs using GET RESPONSE and so on.

.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