Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public Function SendCommand( _
ByVal nSlot As Integer, _
ByVal aCommand As CardCommandAPDU _
) As CardResponseAPDU
This language is not supported or no code example is available.
public CardResponseAPDU SendCommand(
int nSlot,
CardCommandAPDU aCommand
)
This language is not supported or no code example is available.
public:
CardResponseAPDU^ SendCommand(
int nSlot,
CardCommandAPDU^ aCommand
)
This language is not supported or no code example is available.
public 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.
- aCommand
-
Type: CardCommandAPDU
Complete command APDU to be transmitted.
Return Value
Type: CardResponseAPDUReturns the response APDU from the inserted card.
Exception type | Condition |
---|---|
Thrown when a supplied object has been disposed. |
|
Thrown when one or more arguments are outside the required range. |
|
Thrown when one or more required arguments are null. |
|
Thrown when the requested operation is invalid. |
This implementation checks whether this object was disposed and throws an ObjectDisposedException if so. Also it checks whether the object was correctly initialized and throws a InvalidOperationException if not. Then the parameter nSlot is checked against m_nSlots and an ArgumentOutOfRangeException is thrown if the requested slot does not exist. Also the parameter aCommand is checked whether it is null, and a ArgumentNullException is thrown, if so.
If the preconditions have been satisfied, then the command APDU is traced by invoking the trace feature CardTerminalManager singleton. Then the abstract method InternalSendCommand is invoked. Finally the response APDU is traced by invoking the trace feature CardTerminalManager singleton one more time.