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
cardWasResetbool
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
disposingbool
Reconnect()
public void Reconnect()
Transmit(CommandApdu)
Synchronously transmit a command APDU to the smart card.
public ResponseApdu Transmit(CommandApdu commandApdu)
Parameters
commandApduCommandApduA command to send to the smart card.
Returns
- ResponseApdu
A response APDU containing the smart card's reply.
Exceptions
- ArgumentNullException
commandApduis null.- SCardException
Thrown when the underlying platform smart card subsystem encounters an error.