Class DesktopSmartCardConnection
public class DesktopSmartCardConnection : ISmartCardConnection
- Inheritance
-
objectDesktopSmartCardConnection
- Implements
Methods
BeginTransaction(out bool)
Begins a transacted connection to the smart card.
public IDisposable BeginTransaction(out bool cardWasReset)
Parameters
cardWasReset
bool
Returns
- IDisposable
An IDisposable that represents the transaction.
Remarks
This method has no effect on platforms which do not support transactions.
Exceptions
- SCardException
Thrown when the underlying platform smart card subsystem encounters an error.
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
Reconnect()
public void Reconnect()
Transmit(CommandApdu)
Synchronously transmit a command APDU to the smart card.
public ResponseApdu Transmit(CommandApdu commandApdu)
Parameters
commandApdu
CommandApduA command to send to the smart card.
Returns
- ResponseApdu
A response APDU containing the smart card's reply.
Exceptions
- ArgumentNullException
commandApdu
is null.- SCardException
Thrown when the underlying platform smart card subsystem encounters an error.