Powers up the inserted card and attempts to establish a communication connection with it. Once the connection is established the card is exclusively locked and cannot be accessed by another application or thread.

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

Function ConnectCard( _ 
ByVal nSlot As Integer, _ 
ByVal nCardType As CardTypes, _ 
ByRef vbATR As Byte() _ 
) As CardActivationResult
This language is not supported or no code example is available.
CardActivationResult ConnectCard( 
int nSlot
CardTypes nCardType
out byte[] vbATR 
)
This language is not supported or no code example is available.
 
CardActivationResult ConnectCard( 
int nSlot
CardTypes nCardType
array< Byte >^& vbATR 
)
This language is not supported or no code example is available.
function ConnectCard( 
nSlot : int
nCardType : CardTypes
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. The primary slot is identified by the slot number zero. The slot number must be in the range from zero through Slots-1.

nCardType
Type: CardTypes

Card type to connect to. If the actual ICardTerminal implementation does not support the requested card type, then CardActivationResult.NotImplemented is returned.

vbATR
Type: byte[]

[out] Returns the complete ATR that was received when the card was successfully powered up. Will be null whenever the card was not successfully powered up.

Return Value

Type: CardActivationResult

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

.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