Share via


SmartCardRW.InterfaceMode Property

2/27/2008

Holds the current communication interface mode.

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

Syntax

'Declaration
Public MustOverride Property InterfaceMode As SmartCardInterfaceModes
public abstract SmartCardInterfaceModes InterfaceMode { get; set; }
public:
virtual property SmartCardInterfaceModes InterfaceMode {
    SmartCardInterfaceModes get () abstract;
    void set (SmartCardInterfaceModes value) abstract;
}
/** @property */
public abstract SmartCardInterfaceModes get_InterfaceMode ()

/** @property */
public abstract void set_InterfaceMode (SmartCardInterfaceModes value)
public abstract function get InterfaceMode () : SmartCardInterfaceModes

public abstract function set InterfaceMode (value : SmartCardInterfaceModes)

Remarks

Valid modes are defined by the SmartCardInterfaceModes enumeration.

InterfaceMode indicates the current communication interface mode that the SCR/W device is using to communicate with the application. The CapInterfaceMode property contains the interface modes that are supported by the SCR/ W service object. If an InterfaceMode is selected that is not consistent with CapInterfaceMode, a POS for .NET exception is thrown. InterfaceMode can be one of the following values:

Value

Meaning

Transaction

Simple Transaction Command and Data Mode

Block

Block Data Mode

Apdu

Same as Block Data Mode except APDU Standard. Defines the Commands and data.

Xml

XML Block Data Mode

InterfaceMode is set and kept current by the service object while the device is enabled.

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.CapInterfaceMode Property