Connect to card in reader and get a connection object to use.

Namespace: BasicCard.Terminals
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
ICardConnection Connect(
	bool shared
)
Visual Basic
Function Connect ( 
	shared As Boolean
) As ICardConnection
Visual C++
ICardConnection^ Connect(
	bool shared
)
F#
abstract Connect : 
        shared : bool -> ICardConnection 

Parameters

shared
Type: System..::..Boolean
If true a shared connection, otherwise an exclusive connection is established.

Return Value

Type: ICardConnection
The card connection object.

Remarks

Depending on available card, selected card type and reader implementation, different extensions of ICardConnection are returned. E.g. for a processor smart card (T=0, T=1) an IProcessorCardConnection is returned.

See Also