Sends the command APDU to the card or reader represented by this card handle and returns its response APDU.

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

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

Parameters

commandAPDU
Type: CardCommandAPDU

.

Return Value

Type: CardResponseAPDU

A CardResponseAPDU.

Exception type Condition

CardTerminalException

If the card handle is invalid, because the original card was removed from the card terminal, then a CardTerminalException with code CardTerminalExceptionCode.CardWithdrawn will be thrown.

Other CardTerminalExceptionCode s may be thrown as a consequence of sending the command to the card.

ArgumentNullException

Thrown when one or more required arguments are null.

.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