Share via


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

2/27/2008

Ends smart card insertion processing.

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

Syntax

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

Remarks

When called, the SCR/W is taken out of smart card insertion mode. If no smart card is present, an exception is raised.

This method is paired with the BeginInsertion method for controlling smart card insertion in either a contact type or contactless type SCR/W.

EndInsertion 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
EndRemoval