Share via


SmartCardRW.EndRemoval Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Ends smart card removal processing.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Sub EndRemoval
public abstract void EndRemoval ()
public:
virtual void EndRemoval () abstract
public abstract void EndRemoval ()
public abstract function EndRemoval ()

Remarks

When called, the SCR/W is taken out of smart card removal mode in either a contact type or contactless type SCR/W. If a smart card is present, an exception is raised. This method is paired with the BeginRemoval method for controlling smart card removal.

The application can call this method immediately after a successful BeginRemoval if it wants to use the SCR/W sensors to determine when the smart card has been removed.

Alternatively, the application can prompt the user and wait for a key press before calling EndRemoval.

EndRemoval may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

The SCR/W is not in smart card insertion mode.

Failure

A card is not inserted in the SCR/W.

Extended

See the table below.

Possible extended error codes are as follows:

Code

Meaning

ExtendedErrorNoCard

There is no card detected in the SCR/W but a card was expected.

ExtendedErrorRead

There was a read error.

ExtendedErrorTorn

The smart card was prematurely removed from the SCR/W unexpectedly. The CapCardErrorDetection property must be true before this can be set.

ExtendedErrorNoCard

There is no card detected in the SCR/W but a card was expected.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

SmartCardRW Class
SmartCardRW Members
Microsoft.PointOfService Namespace
SmartCardRW.BeginInsertion Method
SmartCardRW.BeginRemoval Method
SmartCardRW.EndInsertion Method