Quick poll that indicates whether a card is present in a card terminal slot. This method can be called from any thread. It is the only multi-threading safe method of this interface.

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

Function IsCardPresent( _ 
ByVal nSlot As Integer, _ 
ByRef fRequiresRemoval As Boolean
) As Boolean
This language is not supported or no code example is available.
bool IsCardPresent( 
int nSlot
ref bool fRequiresRemoval 
)
This language is not supported or no code example is available.
 
bool IsCardPresent( 
int nSlot
bool& fRequiresRemoval 
)
This language is not supported or no code example is available.
function IsCardPresent( 
nSlot : int
fRequiresRemoval : boolean 
) : boolean;
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.

fRequiresRemoval
Type: bool

[in,out] Indicates whether user interaction is required to remove the card. This flag only matters for motorized readers and contactless readers.

Return Value

Type: bool

Returns true if a card is present in the indicated slot and false if not.

.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