Completely Starts up the card terminal manager adding all registered and enabled card terminals to the monitored card terminals list.

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

Public Function Startup( _ 
ByVal fAutoRegisterPcSc As Boolean, _ 
ByVal fLocalUser As Boolean, _ 
Optional ByVal licensePath As String = "" _ 
) As Integer
This language is not supported or no code example is available.
public int Startup( 
bool fAutoRegisterPcSc
bool fLocalUser
string licensePath = "" 
)
This language is not supported or no code example is available.
public:  
int Startup( 
bool fAutoRegisterPcSc
bool fLocalUser
String^ licensePath 
)
This language is not supported or no code example is available.
public function Startup( 
fAutoRegisterPcSc : boolean
fLocalUser : boolean
licensePath : String 
) : int;
This language is not supported or no code example is available.

Parameters

fAutoRegisterPcSc
Type: bool

If this parameter is true, then all PC/SC Workgroup card readers that are not already registered will be added to the registry. For most applications it is suggested that this parameter is passed as

true					
.

fLocalUser
Type: bool

DEPRECATED and ignored. We only work with common application data Previous implementation: If this is true, then the registry data will be stored in the non-roaming local application data. Use this setting for all interactive applications. If this is false the registry data will be stored in the shared common application data folder. Use this for non-interactive services.

licensePath
Type: string

location of the license file. Default: current working directory

Return Value

Type: int

Returns the number of card terminals that have been started up and added to the list of monitored card terminals. If this is zero, then no card terminals are configured, thus an application should ask the user to configure a card terminal first.

Exception type Condition

InvalidOperationException

The card terminal manager was already started up.

This method only returns after the background polling thread has been started successfully and after it updated all the slot states for the first time around. This means, that if a card is already inserted, a CardInsertedEvent will be fired before this method returns.

.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