SmartCardRW.WriteData Method
2/27/2008
Writes data to a smart card.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub WriteData ( _
action As SmartCardWriteAction, _
data As Byte() _
)
public abstract void WriteData (
SmartCardWriteAction action,
byte[] data
)
public:
virtual void WriteData (
SmartCardWriteAction action,
array<unsigned char>^ data
) abstract
public abstract void WriteData (
SmartCardWriteAction action,
byte[] data
)
public abstract function WriteData (
action : SmartCardWriteAction,
data : byte[]
)
Parameters
- action
Indicates the type of processing of the data that is to be done by the smart card.
- data
The data that is to be sent to the smart card.
Remarks
WriteData may cause a PosControlException to be thrown with the following ErrorCode:
Value |
Meaning |
Claimed |
Cannot write 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
ReadData