Creates a CardPcScTerminal instance for a given reader, using the given PC/SC resource manager.

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

Public Sub New( _ 
ByVal aCardResourceManager As SCardResourceManager, _ 
ByVal fOwnResourceManager As Boolean, _ 
ByVal sReaderName As String
)
This language is not supported or no code example is available.
public CardPcScTerminal( 
SCardResourceManager aCardResourceManager
bool fOwnResourceManager
string sReaderName 
)
This language is not supported or no code example is available.
public:  
CardPcScTerminal( 
SCardResourceManager^ aCardResourceManager
bool fOwnResourceManager
String^ sReaderName 
)
This language is not supported or no code example is available.
public function CardPcScTerminal( 
aCardResourceManager : SCardResourceManager
fOwnResourceManager : boolean
sReaderName : String 
);
This language is not supported or no code example is available.

Parameters

aCardResourceManager
Type: SCardResourceManager

Reference of card resource manager to be used by this new instance. The ownership of this card resource manager may be passed or stay within the calling application, depending on the fOwnResourceManager parameter.

fOwnResourceManager
Type: bool

Indicates whether the ownership of the SCardResourceManager instance shall remain with the calling application (fOwnResourceManager is false) or whether the new CardPcScTerminal instance shall take over ownership of the SCardResourceManager. If the CardPcScTerminal takes over ownership, then it will orderly dispose the SCardResourceManager when it is disposed, too. Otherwise it remains the task of the calling application to finally dispose the SCardResourceManager.

sReaderName
Type: string

PC/SC Workgroup API reader name of the card reader to use with this class. This may have been selected from the list of card reader names from the SCardResourceManager class.

Use this constructor if you already have an instance of the PC/SC resource manager.

.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