Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Parameters
- nSlot
-
Type: int
Slot number of card terminal slot of interest.
- requiresRemoval
-
Type: bool
[in,out] Returns a flag telling the caller if the card must be removed by the user This is required for motorized readers.
Return Value
Type: boolReturns true if a card is present in the indicated slot and false if not.
Exception type | Condition |
---|---|
Thrown when a supplied object has been disposed. |
|
Thrown when one or more arguments are outside the required range. |
|
Thrown when the requested operation is invalid. |
This implementation checks whether this object was disposed and throws an ObjectDisposedException if so. Also it checks whether the object was correctly initialized and throws a InvalidOperationException if not. Then the parameter nSlot is checked against m_nSlots and an ArgumentOutOfRangeException is thrown if the requested slot does not exist.
If the preconditions have been satisfied, then the abstract method InternalIsCardPresent is invoked.