Boilerplate implementation of ICardTerminal.ReconnectCard.

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

Public Function ReconnectCard( _ 
ByVal nSlot As Integer, _ 
ByRef vbATR As Byte() _ 
) As CardActivationResult
This language is not supported or no code example is available.
public CardActivationResult ReconnectCard( 
int nSlot
out byte[] vbATR 
)
This language is not supported or no code example is available.
public:  
CardActivationResult ReconnectCard( 
int nSlot
array< Byte >^& vbATR 
)
This language is not supported or no code example is available.
public function ReconnectCard( 
nSlot : int
vbATR : byte[] 
) : CardActivationResult;
This language is not supported or no code example is available.

Parameters

nSlot
Type: int

Slot number of card terminal slot of interest.

vbATR
Type: byte[]

[out] Card ATR.

Return Value

Type: CardActivationResult

Returns the result from the attempt to activate the card. See CardActivationResult for possible return values.

Exception type Condition

ObjectDisposedException

Thrown when a supplied object has been disposed.

ArgumentOutOfRangeException

Thrown when one or more arguments are outside the required range.

InvalidOperationException

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.

If the preconditions have been satisfied, then the abstract method InternalReconnectCard is invoked.

.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