Share via


SmartCardRW.SCPresentSensor Property

2/27/2008

Indicates a smart card is in position to exchange data.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property SCPresentSensor As Integer
public abstract int SCPresentSensor { get; }
public:
virtual property int SCPresentSensor {
    int get () abstract;
}
/** @property */
public abstract int get_SCPresentSensor ()
public abstract function get SCPresentSensor () : int

Remarks

SCPresentSensor indicates that a smart card has been detected in one of the supported slots present in the SCR/W device and is in a position to exchange data with the application. This property is only active if the CapSCPresentSensor property confirms that a smart-card-present sensor is supported by the slot. The SCR/W device always has a minimum of one slot available (designated as the default slot) indicated by the LSB, but may or may not support a smart-card-present sensor. SCPresentSensor is a bitwise logical OR combination of any of the int32 bits with bit 0 (LSB) slot 0 (default); bit 1, slot 1; bit 2, slot 2; and so on. If the bit value is 1, then the sensor indicates that a smart card is present; the bit value is 0 if it does not.

SCPresentSensor 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.CapSCPresentSensor Property