Share via


SmartCardRW.InterfaceMode Property

Indicates the current communication interface mode.

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

Usage

'Usage
Dim smartCardRW1 As SmartCardRW

Dim returnValue As SmartCardInterfaceModes
returnValue = smartCardRW1.InterfaceMode

Dim sampleValue As SmartCardInterfaceModes
smartCardRW1.InterfaceMode = sampleValue

Syntax

'Declaration
Public MustOverride Property InterfaceMode() As SmartCardInterfaceModes
public abstract SmartCardInterfaceModes InterfaceMode {get; set;}
public: property virtual SmartCardInterfaceModes^ InterfaceMode{
    SmartCardInterfaceModes^ get();
    Void set(SmartCardInterfaceModes^);
}
public abstract SmartCardInterfaceModes get_InterfaceMode();
public abstract void set_InterfaceMode(SmartCardInterfaceModes);
public abstract function get InterfaceMode() : SmartCardInterfaceModes;
public abstract function set InterfaceMode(SmartCardInterfaceModes);

Remarks

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 typically initialized to Transaction. It should then be 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

SmartCardRW Class
SmartCardRW Members
Microsoft.PointOfService Namespace
CapInterfaceMode