Share via


SmartCardRW.ReadData Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Reads data from a smart card.

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

Syntax

'Declaration
Public MustOverride Function ReadData ( _
    action As SmartCardReadAction, _
    data As Byte() _
) As Byte()
public abstract byte[] ReadData (
    SmartCardReadAction action,
    byte[] data
)
public:
virtual array<unsigned char>^ ReadData (
    SmartCardReadAction action, 
    array<unsigned char>^ data
) abstract
public abstract byte[] ReadData (
    SmartCardReadAction action, 
    byte[] data
)
public abstract function ReadData (
    action : SmartCardReadAction, 
    data : byte[]
) : byte[]

Parameters

  • action
    Indicates the type of data processing to be done by the smart card.
  • data
    The data that is to be read by the smart card.

Remarks

SmartCardReadAction returns data if successful, and may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Claimed

Cannot read because the smart card present in the SCR/W is claimed by another application.

Illegal

The action is not valid for the type of smart card present in the SCR/W or the count value is not valid for the smart card present in the SCR/W.

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
WriteData